On Oct 15, 2011, at 12:28 PM, Jean-Daniel Dupas wrote:
> Le 15 oct. 2011 à 21:10, Seth Willits a écrit :
>> 
>> Unrelated, when did @autoreleasepool pop in? I don't remember if I knew 
>> about that or not. It's _used_ once in the Obj-C Programming Language guide, 
>> but never documented anywhere I can find.
> 
> It appears with ARC. 
> 
> For the rational, you can read this:
> 
> http://clang.llvm.org/docs/AutomaticReferenceCounting.html#autoreleasepool

@autoreleasepool also works without ARC. It's faster than NSAutoreleasePool. 
Use it.


-- 
Greg Parker     gpar...@apple.com     Runtime Wrangler


_______________________________________________

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