Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer drawing "transition" effect?




On 31 Jul '08, at 10:24 AM, Joseph Kelly wrote:

I'm noticing that whenever my -drawInContext gets called (in response to calling -setNeedsDisplay) that there appears to be an actual animated fade-out / fade-in of of the old content and the new content.
I do not see this transition effect documented anywhere, so I'm wondering if I'm doing something wrong. Or, if this is the correct behavior, how do I turn it off?

The content of a layer is an animatable property, so by default, changing the content will do a crossfade. It seems that applies to custom content (drawn by -drawInContext:) as well as the "content" property.


There are a couple ways to suppress animations. You can use the CAContext API to disable all animations while you make your changes, or you can use the layer's "actions" dictionary to override the animation for the content transition.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >CALayer drawing "transition" effect? (From: Joseph Kelly <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.