1

I am unable to compile dispatch_queue_t as a property using the strong type. When I revert to assign, the thread fails at runtime. I am compiling with OS X 10.10.3 (latest version).

@property (nonatomic, strong) dispatch_queue_t serialDispatchQueue;

I get the error message:

Semantic Issue: Property with 'retain (or strong)' attribute must be object type.

Note that I have read the other listings that indicate the need to compile in OS X 10.8 or later to support ARC. This doesn't seem to solve my problem. Any suggestions would be appreciated.

Logan Wayne
  • 6,001
  • 16
  • 31
  • 49
Antony
  • 187
  • 4
  • 15

2 Answers2

1

Make the property assign, and make sure to actually create the queue and assign the property before you use it.

Avi
  • 7,469
  • 2
  • 21
  • 22
0

Thanks to comment by post by Avi the dispatch now works. Here's the object creation declaration that I ommitted:

self.serialDispatchQueue = dispatch_queue_create("com.selander.GooglyPuff.photoQueue",
                                       DISPATCH_QUEUE_CONCURRENT);
Antony
  • 187
  • 4
  • 15