• 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: dispatch queues are objects now .. right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dispatch queues are objects now .. right?


  • Subject: Re: dispatch queues are objects now .. right?
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 28 Nov 2012 08:58:45 -0800

On Sun, 25 Nov 2012 21:38:25 +0800, Roland King <email@hidden> said:
>I'm pretty sure that when I was watching the WWDC 2012 sessions, dispatch queues are now objects (since iOS6 and OS 10.7/10.8?) and as such I don't have to dispatch_retain() or release them and can just use them like any other object. But I can't find a reference in the documentation which supports that, that still says dispatch_queue_t is a struct.

The place to look is <os/object.h>. I haven't found a more definitive statement (or a clearer one). It's easy to detect whether you're running under the rules described here because if you're using ARC (and you'd be crazy not to) you *cannot* dispatch_release. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
_______________________________________________

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: Re: Checking if mouse event was generated by touch
  • Next by Date: Re: Reordering a table insanity
  • Previous by thread: Re: dispatch queues are objects now .. right?
  • Next by thread: what happens when layout constraint height and frame height conflict (iOS)?
  • Index(es):
    • Date
    • Thread