• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CATransactions having no effect in CALayer draw delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: CATransactions having no effect in CALayer draw delegate
      • From: Ken Tozier <email@hidden>
References: 
 >CATransactions having no effect in CALayer draw delegate (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: making a clickable link in NSTableView
  • Next by Date: Re: Non-rectangular image of NSView for dragging
  • Previous by thread: CATransactions having no effect in CALayer draw delegate
  • Next by thread: Re: CATransactions having no effect in CALayer draw delegate
  • Index(es):
    • Date
    • Thread