• 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: Callbacks from async blocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Callbacks from async blocks


  • Subject: Re: Callbacks from async blocks
  • From: Allan Odgaard <email@hidden>
  • Date: Sat, 16 Mar 2013 16:13:48 +0100

On 16 Mar 2013, at 14:14, Roland King wrote:

[…] you have a simple counter member variable, 'currentOperation'. It's set to 0 when you have no operation and you increment it each time you make a new one. The code looks like this (typed in mail) […]

		if( currentOperation == currentOperationAtQueueTime )
		{
			[ yourClass operationDidFinish ];
			currentOperation = 0;
		}

Correct me if I’m wrong, but you can only set ‘currentOperation’ to zero if it’s a serial queue or you know it’s empty.
_______________________________________________

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


  • Follow-Ups:
    • Re: Callbacks from async blocks
      • From: Roland King <email@hidden>
References: 
 >Callbacks from async blocks (From: Oleg Krupnov <email@hidden>)
 >Re: Callbacks from async blocks (From: Roland King <email@hidden>)

  • Prev by Date: Re: Global (all-user) preferences for an application
  • Next by Date: CALayer with AppKit objects inside
  • Previous by thread: Re: Callbacks from async blocks
  • Next by thread: Re: Callbacks from async blocks
  • Index(es):
    • Date
    • Thread