Normally, if you are creating a background thread or running NSOperation in an NSOperationQueue, you need to create an NSAutoreleasePool for this thread or operation, since by default there are none.
Does the same rule match the block placed in the Grand Central Dispatch queue and will be executed in the main thread? That is, you need to create an NSAutoreleasePool in every block that you send to something other than the main queue?
In my limited testing, I do not see console warnings for auto-implemented objects that you usually see with background threads or NSOperations. However, I cannot find the final documentation on this, so I was wondering if anyone could indicate where this is indicated.
objective-c iphone cocoa grand-central-dispatch macos
Brad Larson Nov 10 '10 at 4:02
source share