• 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: CALayer instant content update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer instant content update


  • Subject: Re: CALayer instant content update
  • From: David Duncan <email@hidden>
  • Date: Fri, 3 Sep 2010 10:44:44 -0700

On Sep 3, 2010, at 10:36 AM, Markus Spoettl wrote:

> I have delegate-drawn layers (on the main thread) whose content I want to change without animation, I don't want to a change transition of any kind in some situations. Up until now I'm using this:


If you want to have a layer that doesn't animate (crossfade) content changes, then set the layer's actions dictionary like so:

layer.actions = [NSDictionary dictionaryWithObject:[NSNull null] forKey:@"contents"];

This will prevent animation of the "contents" property. There are a lot of other ways to do this too, I would recommend you read the documentation for -[CALayer actionForKey:] for more details.
--
David Duncan

_______________________________________________

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 instant content update
      • From: Markus Spoettl <email@hidden>
References: 
 >CALayer instant content update (From: Markus Spoettl <email@hidden>)

  • Prev by Date: CALayer instant content update
  • Next by Date: [Moderator - undocumented API discussion and this thread] Re: iTunes 10 UI
  • Previous by thread: CALayer instant content update
  • Next by thread: Re: CALayer instant content update
  • Index(es):
    • Date
    • Thread