Re: NSDocument never deallocated with autosave/versions
Re: NSDocument never deallocated with autosave/versions
- Subject: Re: NSDocument never deallocated with autosave/versions
- From: Kyle Sluder <email@hidden>
- Date: Wed, 30 May 2012 08:19:16 -0400
On May 30, 2012, at 8:13 AM, Graham Cox <email@hidden> wrote:
>
>> I guess you should implement -[NSDocument close] to do your cleanup then.
>
> Indeed, I have done. But that doesn't fix the bug, it only mitigates its effects. A leak is still there, and it's a potentially quite large one, since NSDocument owns my data model.
Surely you can invalidate your data model within -close? How does NSDocument otherwise have a handle on it?
--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