On Sun, Jun 19, 2011 at 12:38 AM, Ken Tozier <kentoz...@comcast.net> 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 (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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com