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? 

if there isn't one by the way, this would really make an ideal technote. There 
was lots of information in the 2010, 2011 and 2012 WWDC videos and each year 
things changed, which is part of my confusion, I've been watching some of the 
older videos I never saw before, 2 pages akin to the 'Transitioning to ARC' 
notes would really help here, saying what dispatch queues and similar do in 
various version of the OS and what you need to do with them (there was 
something about cancelling .. something .. to avoid reference cycles .. I'm 
going to have to watch the vids for a 3rd time). If there is such a technote, 
my search didn't find it. 
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to