• 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: Markus Spoettl <email@hidden>
  • Date: Fri, 3 Sep 2010 19:26:54 -0400

On Sep 3, 2010, at 1:44 PM, David Duncan wrote:
> 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.

Works great thank you!

I did read the documentation (before I asked and after) but I would never have guessed this is what I am supposed to do to achieve what I want. Never ever. I imagine it wouldn't be the worst thing in the world if some practical examples of how to use actions be added to the Core Animation Programming Guide or the Cookbook.

Anyway, thanks again!

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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

References: 
 >CALayer instant content update (From: Markus Spoettl <email@hidden>)
 >Re: CALayer instant content update (From: David Duncan <email@hidden>)

  • Prev by Date: Re: CALayer -drawInContext and GCD
  • Next by Date: isTemporaryID unrecognized selector - how do I debug this?
  • Previous by thread: Re: CALayer instant content update
  • Next by thread: Re: CALayer instant content update
  • Index(es):
    • Date
    • Thread