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 (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