Re: CALayer with No Animation
Re: CALayer with No Animation
- Subject: Re: CALayer with No Animation
- From: Richard Somers <email@hidden>
- Date: Mon, 18 Jan 2010 12:24:59 -0700
On Jan 18, 2010, at 10:11 AM, David Duncan wrote:
-drawInContext: is too early to stop the creation of the animation,
as it occurs after -drawInContext: finishes and the layer's contents
are set. You need to override -actionForKey:, watch for the
@"contents" key, and return nil. There are actually lots of ways to
do this so I highly recommend you read the documentation for that
action, as the other methods may be useful in other contexts.
Thank you so much. That worked.
An observation. CAOpenGLLayer provides for manually controlling
animations. CALayer uses automatic animations. Why the difference?
--Richard
_______________________________________________
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:
This email sent to email@hidden