> On Jul 12, 2017, at 9:54 AM, Jeremy Hughes <moon.rab...@virginmedia.com> > wrote: > > I’d forgotten about autorelease pools - but I guess they’re still there in > Cocoa for backwards compatibility with pre-ARC code.
Autorelease is still necessary with ARC. There are cases where ARC doesn’t know enough about object lifetimes at compile-time, and has to e.g. autorelease a temporary object before returning it from a method. —Jens _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com