• 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: Mike Abdullah <email@hidden>
  • Date: Sun, 25 Nov 2012 23:36:43 +0000

On 25 Nov 2012, at 13:38, Roland King <email@hidden> wrote:

> 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.
>
> I wandered around the header files a bit but they conflict with each other. The header file (queue.h) says they are reference counted via calls to dispatch_retain() .. but the OS_OBJECT_DECL() macro says something rather different, that they are objects and the trail goes cold there.
>
> Am I correct in what I remember, are they now NSSObjects?

They are objective-C objects, which doesn't necessarily mean they inherit from NSObject. If you have a deployment target of 10.8 or iOS 6 then ARC is able to manage their lifecycle for you.


_______________________________________________

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: 
 >dispatch queues are objects now .. right? (From: Roland King <email@hidden>)

  • Prev by Date: Re: NSFileManager - Incompatible persistent store
  • Next by Date: Re: NSFileManager - Incompatible persistent store
  • Previous by thread: dispatch queues are objects now .. right?
  • Next by thread: Re: dispatch queues are objects now .. right?
  • Index(es):
    • Date
    • Thread