Re: Meaning of explicit transactions
Re: Meaning of explicit transactions
- Subject: Re: Meaning of explicit transactions
- From: Scott Anguish <email@hidden>
- Date: Fri, 2 Oct 2009 01:48:58 -0400
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 (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