Re: CATransactions having no effect in CALayer draw delegate
Re: CATransactions having no effect in CALayer draw delegate
- Subject: Re: CATransactions having no effect in CALayer draw delegate
- From: Kyle Sluder <email@hidden>
- Date: Sun, 19 Jun 2011 10:03:16 -0700
On Sun, Jun 19, 2011 at 12:38 AM, Ken Tozier <email@hidden> wrote:
> HI
>
> I'm writing a subclass of CALayer and what I'm seeing is that regardless of whether I wrap CG drawing commands in a CATransaction, or not, it still animates. One of the properties of the subclass is a "suppressAnimations" BOOL which, if set, is used in the draw method to dispatch the incoming layer and context to a "suppressed" or "normal" draw method. Here's the my drawInContext method:
You're mixing conceptual layers here.
CG drawing isn't animated at all. The animation happens at the Core
Animation layer. When CA asks your layer to -drawInContext: that's an
atomic operation from CA's perspective. The thing getting animated is
whatever that context was attached to.
> I tried the suggestion by David Duncan here (http://www.cocoabuilder.com/archive/cocoa/279886-calayer-with-no-animation.html) and overrode
It sounds like you didn't understand what he was saying.
--Kyle Sluder
_______________________________________________
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