it means both.
the animations will start at the commit
and the animations will have the same duration.
Is this unclear in the doc?
On Sep 28, 2009, at 7:07 AM, Gabriel Zachmann wrote:
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?
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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/archive%40mail-archive.com
This email sent to arch...@mail-archive.com