• 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
CALayer drawing "transition" effect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer drawing "transition" effect?


  • Subject: CALayer drawing "transition" effect?
  • From: Joseph Kelly <email@hidden>
  • Date: Thu, 31 Jul 2008 10:24:20 -0700

I am subclassing CALayer, and overriding -drawInContext: to perform my drawing.

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?

It's really quite an eye-catching effect, but it's not desirable in this particular case; I need the layer content to show up immediately.

I've got several instances of my CALayer subclass as sublayers of an NSView with -setWantsLayer:YES.

The reason I subclass CALayer is merely as a convenience. I pass off drawing to a C++ object, and rather than create an objective C proxy which delegates drawing from a CALayer which it owns, I collapsed it into a subclass. But if this is the culprit, I'll go ahead w/ the proxy object.

Thanks in advance,


Joe K. _______________________________________________

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: CALayer drawing "transition" effect?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: inspecting undo
  • Next by Date: Re: inspecting undo
  • Previous by thread: Re: inspecting undo
  • Next by thread: Re: CALayer drawing "transition" effect?
  • Index(es):
    • Date
    • Thread