According to this Apple page , I read that when interacting with Cocoa in a POSIX stream, I have to create an NSAutoreleasePool .
If you create Cocoa calls outside of the main thread application sets - for example, if you create an application only for Foundation or if you disconnect the stream - you need to create your own autoresource pool.
Unfortunately, the use of NSAutoreleasePool prohibited in ARC.
What should I do to ensure that there is always a pool for any ARC code that is auto-implemented?
Thanks!
source share