• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDocument never deallocated with autosave/versions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDocument never deallocated with autosave/versions
      • From: Graham Cox <email@hidden>
References: 
 >NSDocument never deallocated with autosave/versions (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSDocument never deallocated with autosave/versions
  • Next by Date: Re: Sandboxing. WTF?
  • Previous by thread: Re: NSDocument never deallocated with autosave/versions
  • Next by thread: Re: NSDocument never deallocated with autosave/versions
  • Index(es):
    • Date
    • Thread