Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer doesn't resize immediately




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >CALayer doesn't resize immediately (From: Axel Péju <email@hidden>)
 >Re: CALayer doesn't resize immediately (From: Thomas Schlömer <email@hidden>)
 >Re: CALayer doesn't resize immediately (From: Axel Péju <email@hidden>)
 >Re: CALayer doesn't resize immediately (From: "Bertrand Landry-Hetu" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.