Re: CALayer bounds with ResizeAspect mask?
Re: CALayer bounds with ResizeAspect mask?
- Subject: Re: CALayer bounds with ResizeAspect mask?
- From: David Duncan <email@hidden>
- Date: Thu, 9 Oct 2008 09:12:04 -0700
On Oct 8, 2008, at 11:09 PM, Colin Doncaster wrote:
so I would turn off the animations by updating the frame and
position within
[CATransaction begin];
[CATransaction setValue:
(id)kCFBooleanTrueforKey:kCATransactionDisableActions];
[CATransaction commit];
or is there another more correct way?
this seems to work, but I wasn't too sure if there's a
wantsAnimation type property that could be called on a layer to
always turn off animation on that layer.
This if fine if you don't always want to disable a particular
animation. If you wish to alter or disable an animation in all
contexts, then read the docs on -actionForKey: which describes several
methods you can use to disable a particular animation for a layer or
group of layers.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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