On Oct 18, 2012, at 8:50 AM, Gabriel Zachmann <z...@tu-clausthal.de> wrote:
> So far, I am fading out an existing layer, and fading in a new layer by the > following 5 lines of code: > > [CATransaction begin]; > [CATransaction setAnimationDuration: fading_duration]; > [mainLayer_ replaceSublayer: currentLayer_ with: newlayer]; > currentLayer_ = newlayer; > [CATransaction commit]; > > This works fine under Lion, and it worked fine under Snow Leopard. > > It does not work any more under ML, i.e., the layers get replaced, but there > is no cross-dissolve effect. My psychic powers tell me that mainLayer_'s delegate is an NSView instance. Read the Mountain Lion release notes and watch the WWDC videos on implicit animations in AppKit using NSAnimationContext. --Kyle Sluder _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com