Meaning of explicit transactions
Meaning of explicit transactions
- Subject: Meaning of explicit transactions
- From: Gabriel Zachmann <email@hidden>
- Date: Mon, 28 Sep 2009 13:07:00 +0200
I am trying to learn about the Core Animation framework.
One thing I am still a bit unclear about is the exact meaning of
explicit transactions.
For instance, assume I've got the following code:
[CATransaction begin];
[CATransaction setValue: [NSNumber numberWithFloat: 2.0f] forKey:
kCATransactionAnimationDuration ];
[currentLayer_ removeFromSuperlayer];
// make new currentLayer_ ...
[mainLayer_ addSublayer: currentLayer_ ];
[CATransaction commit];
Does that mean that *both* animations (the one for
removeFromSuperlayer and the one for addSublayer)
are started at the point where 'CATransaction commit' is executed?
(with duration of 2 seconds)
Or does it mean that both animations just have a duration of 2
seconds, but each of them is started at the respective point in the
code?
Best regards,
Gabriel.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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