Re: CALayer doesn't resize immediately
Re: CALayer doesn't resize immediately
- Subject: Re: CALayer doesn't resize immediately
- From: Scott Anguish <email@hidden>
- Date: Thu, 8 Nov 2007 17:11:01 -0500
On Nov 8, 2007, at 6:42 AM, Bertrand Landry-Hetu wrote:
The other way I found is to disable the default animation for that
property:
NSDictionary * disabledAnimation = [NSDictionary
dictionaryWithObjectsAndKeys: [NSNull null], @"bounds", [NSNull
null],
@"position", nil];
myLayer.actions = disabledAnimation;
You can also just disable the actions for that transaction
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Transactions.html#/
/apple_ref/doc/uid/TP40006096-DontLinkElementID_56
[CATransaction begin];
[CATransaction setValue:(id)kCFBooleanTrue
forKey:kCATransactionDisableActions];
[aLayer removeFromSuperlayer];
[CATransaction commit];
(that maybe should be under implicit animations rather than explicit..
I'll ave to think about that)
_______________________________________________
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