• 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
Re: CATransaction setCompletionBlock - Nested Transactions bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CATransaction setCompletionBlock - Nested Transactions bug?


  • Subject: Re: CATransaction setCompletionBlock - Nested Transactions bug?
  • From: Seth Willits <email@hidden>
  • Date: Sun, 7 Nov 2010 14:06:44 -0800

On Nov 7, 2010, at 1:42 PM, Kyle Sluder wrote:

>> a) Why does the first code snippet call the completion block "immediately"?
>> b) If you assume A's answer is logical and correct, why does adding a completion block to the inner transaction affect the outer?
>>
>> Something seems wrong here.
>
> Doesn't seem wrong to me. All 0 actions in your first example have completed when the transaction fires its completion handler.


Right, and that I could understand, except how does the inner transaction affect the outer transaction at all? That seems contradictory. Clearly the outer transaction's completion block depends on the inner's being called first if there is one, but then why doesn't the outer transaction care that the inner transaction hasn't finished before being called at all? That contradiction at the very least seems wrong. It's certainly undocumented and unclear.

--
Seth Willits



_______________________________________________

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

References: 
 >CATransaction setCompletionBlock - Nested Transactions bug? (From: Seth Willits <email@hidden>)
 >Re: CATransaction setCompletionBlock - Nested Transactions bug? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Ping host and port
  • Next by Date: Re: Ping host and port
  • Previous by thread: Re: CATransaction setCompletionBlock - Nested Transactions bug?
  • Next by thread: Re: CATransaction setCompletionBlock - Nested Transactions bug?
  • Index(es):
    • Date
    • Thread