What is an @autoreleasepool in Objective-C?
@autoreleasepool is a new feature of Objective-C 3.0. An example of its usage and the equivalent in previous versions of Objective-C: @autoreleasepool { // Do some cool stuff } NSAutoreleasePool *pool = [NSAutoreleasePool new]; // Do some cool stuff [pool drain]; Note that the second sample is no longer valid code — instantiating your own … Lire la suite