On Oct 18, 2012, at 9:53 AM, Kyle Sluder <k...@ksluder.com> wrote:

> 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.

I had that same inclination!

> Read the Mountain Lion release notes and watch the WWDC videos on implicit 
> animations in AppKit using NSAnimationContext.

Yeah, those videos are great. 

corbin

PS: NSAnimationContext.currentContext.allowsImplicitAnimations = YES;

> 
> 
> --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/corbind%40apple.com
> 
> This email sent to corb...@apple.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to