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 06:55:11 -0400
On May 29, 2012, at 10:05 PM, Graham Cox <email@hidden> wrote:
> The key object that seems never to release my document is the NSSavePanel that is displayed only when I have added content, and I close the window. The save panel is shown, and the retain count shoots right up. If I click 'Don't Save', the window closes as expected but the document is still retained - the retain count does not go back down to the point it was at prior to the dialog showing up, and dealloc is never called.
>
> Key point: If I disable autosaving for my document class, the document is deallocated as expected.
Do you override any of the saving methods and fail to call their completion handlers in the Don't Save case?
--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