FROM : Scott Anguish
DATE : Thu Nov 08 23:11:01 2007
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)
DATE : Thu Nov 08 23:11:01 2007
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)
| Related mails | Author | Date |
|---|---|---|
| Axel Péju | Nov 7, 10:58 | |
| Thomas Schlömer | Nov 7, 11:08 | |
| Axel Péju | Nov 7, 21:52 | |
| Bertrand Landry-He… | Nov 8, 12:42 | |
| Scott Anguish | Nov 8, 23:11 | |
| Scott Anguish | Nov 8, 23:11 | |
| Bertrand Landry-He… | Nov 11, 09:17 |






Cocoa mail archive

