Re: __weak pointer collection firing prematurely???
Re: __weak pointer collection firing prematurely???
- Subject: Re: __weak pointer collection firing prematurely???
- From: Kyle Sluder <email@hidden>
- Date: Mon, 13 Aug 2012 09:01:12 -0700
On Aug 13, 2012, at 1:00 AM, Quincey Morris <email@hidden> wrote:
> There's nothing about the fact that the document is executing a method that prevents it from being deallocated before the method ends.
As was discussed on the objc-language list recently, the ARC spec specifically guarantees that an object's lifetime includes the entire duration of a method invocation. An object *cannot* be deallocated while one of its methods is executing.
Britt, have you tried upgrading your tools? Xcode 4.1.1 is pretty old in terms of ARC bugfixes. This might be a codegen issue.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden