Hi, Thanks very much for the response.
Good idea about the awakeFromNib, but I changed my test app to use a button instead and both problems remain (the flipping, and the disappearing sublayer. The application I am using this in is not much complicated in principle than the example app, other than the layers are a lot prettier :-) My app is basically a hierarchy of layers in a scrollview (although the flipping issue appears to be an NSTabView problem, as it still happens outside of a scrollview). I used to use a simple drawRect: based drawing system, but is was slow, so I'm trying to move to Core Animation, which has certainly sped it up, but I've still got a few issues to clear up.... Does anyone have experience with Tech Support Incidents? I'm thinking about springing for one of those. Cheers MT --- On Thu, 7/8/08, Matt Long <[EMAIL PROTECTED]> wrote: > From: Matt Long <[EMAIL PROTECTED]> > Subject: Re: Strange flipping bug in Core Animation? > To: [EMAIL PROTECTED] > Cc: cocoa-dev@lists.apple.com > Date: Thursday, 7 August, 2008, 10:49 PM > When you call addSubLayer, you are in essence telling the > layer to > animate so any properties you changed in the layer will > animate after > adding the layer. You are doing this in your awakeFromNib > which is > likely why you don't see the animation when it > runs--not sure though. > You might want to hook it to a button click instead to see > it run > after everything has loaded. > > It might help if you explain what you are trying to do. > It's not clear > from your code. > > -Matt > > > On Aug 7, 2008, at 3:53 AM, Moray Taylor wrote: > > > Dear list, > > > > I first posted this to the quartz list, but I'm > starting to think > > I'm the only person on it, some hopefully a Cocoa > list reader can > > help... > > > > I think I've stumbled upon a bug/undocumented > feature in Core > > Animation, I've made a quick app to demonstrate > the issue. > > > > http://s3.amazonaws.com/TempStuff/LayerDebug.zip > > > > Once the app runs, make sure you are in > 'tab1', you can resize the > > window, scroll around, all is well (apart from the > disappearing blue > > sublayer, but lets ignore that for now, unless anyone > knows how to > > fix this?) > > > > You switch to 'tab2' and back again, fine. > > > > BUT, if I switch to 'tab2', resize the window > (even a 1 pixel > > tweak), then go back to 'tab1', the layers are > now upside down! > > > > I want to use Core Anim in a shipping app, but > obviously cannot > > until I sort this out, so I'd really appreciate > any input. > > > > Cheers > > > > Moray > > > > > > > > > > > > > __________________________________________________________ > > Not happy with your email address?. > > Get the one you really want - millions of new email > addresses > > available now at Yahoo! > http://uk.docs.yahoo.com/ymail/new.html > > _______________________________________________ > > > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > > > Please do not post admin requests or moderator > comments to the list. > > Contact the moderators at > cocoa-dev-admins(at)lists.apple.com > > > > Help/Unsubscribe/Update your Subscription: > > > http://lists.apple.com/mailman/options/cocoa-dev/matt.long%40matthew-long.com > > > > This email sent to [EMAIL PROTECTED] __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]