David Duncan said on Mar 09 2010 at 21:13: > Unfortunately the answer is that this is a bug without a clear solution (in > the removal case). Your best bet is to hide the layer, then remove it after > the animation has completed rather than to remove it directly.
Unfortunately this seems not to work either: an animation returned as an action by e.g. actionForLayer:forKey: when hiding a layer (key @"hidden") is never performed. So the workaround would presumably involve setting the layer's opacity to 0. What I would do, then, is something like this: [CATransaction setCompletionBlock: ^{ [layer removeFromSuperlayer]; }]; [CATransaction setValue:@"" forKey:@"byebye"]; layer.opacity = 0; Now in the delegate's actionForLayer:forKey: you test for the incoming @"opacity" key and the CATransaction @"byebye" key, and if both conditions are met, return the desired animation. m. > > On Mar 9, 2010, at 11:52 AM, Steven Degutis wrote: > >> Not yet; still asking everyone I know and hoping a Core Animation wizard >> comes across this thread. >> >> On Tue, Mar 9, 2010 at 2:49 PM, Jon Buffington wrote: >> >>> Steven, >>> >>> Did you ever find a solution to the kCAOnOrderOut animation problem? I was >>> frustrated by this problem in the past but gave up as the animation was >>> optional. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf AppleScript: the Definitive Guide, 2nd edition http://www.tidbits.com/matt/default.html#applescriptthings Take Control of Exploring & Customizing Snow Leopard http://tinyurl.com/kufyy8 RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html TidBITS, Mac news and reviews since 1990, http://www.tidbits.com _______________________________________________ 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 arch...@mail-archive.com