• 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: receptionist pattern question: NSOperationQueue vs. GCD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: receptionist pattern question: NSOperationQueue vs. GCD


  • Subject: Re: receptionist pattern question: NSOperationQueue vs. GCD
  • From: Sean McBride <email@hidden>
  • Date: Wed, 15 Feb 2012 15:53:53 -0500
  • Organization: Rogue Research Inc.

On Wed, 15 Feb 2012 11:19:49 -0800, Matt Neuburg said:

>My question is simply this: in a world that has GCD, is there any reason
>why we wouldn't have "queue" be a GCD dispatch queue (probably the main
>queue) and call dispatch_asynch? Putting it even more generally (and
>this is probably my *real* question), is there any reason why I'd ever
>use NSOperationQueue's addOperationWithBlock given the existence of GCD?

NSOperationQueue is higher level, and Apple's always saying to use the highest level API available.  Another minor reason: NSOperationQueue is available on 10.5, and GCD is not.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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: receptionist pattern question: NSOperationQueue vs. GCD
      • From: Matt Neuburg <email@hidden>
References: 
 >receptionist pattern question: NSOperationQueue vs. GCD (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: How can I detect a mouse click outside a child window on Leopard?
  • Next by Date: __block __weak - am I doing this right?
  • Previous by thread: Re: receptionist pattern question: NSOperationQueue vs. GCD
  • Next by thread: Re: receptionist pattern question: NSOperationQueue vs. GCD
  • Index(es):
    • Date
    • Thread