• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Meaning of explicit transactions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: NSTokenField token color/control
  • Next by Date: Re: Creating a radar sweep effect
  • Previous by thread: Re: NSTokenField token color/control
  • Next by thread: Animating "contents" property of CALayer via the delegate
  • Index(es):
    • Date
    • Thread