Hi Andreas.

I assuming that you aren't using ARC, right?
Be aware that the property declaration that you send doesn't retain anything. 
The declaration should by:

@property (nonatomic, retain) dispatch_queue_t *dispatchQueue;

On Nov 2, 2011, at 9:52 AM, Andreas Grosam wrote:

> I want to set a dispatch queue via a property. How should I set the 
> property's attributes when the queue is retained/released via functions 
> dispatch_retain() and dispatch_release()?
> 
> Currently, since using "retain" is only possible for objects, I just declare 
> it like follows:
> 
> @property (nonatomic) dispatch_queue_t dispatchQueue;
> 
> 
> But here, the retain/release semantic isn't exposed. Any better ideas?
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/bruno%40southlabs.net
> 
> This email sent to br...@southlabs.net

-- 
SouthLabs |  www.southlabs.com
Apple recommends SharePlus

SharePlus: NOW for MAC !!!

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to