• 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: How did I break Auto Save during -[NSApp terminate:]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How did I break Auto Save during -[NSApp terminate:]?


  • Subject: Re: How did I break Auto Save during -[NSApp terminate:]?
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 21 Oct 2013 17:51:57 -0700

On 2013 Oct 21, at 16:23, Scott Ribe <email@hidden> wrote:

> All the interactions here are subtle and thinly documented. It all "just works" for standard document-based apps and subclasses of NSDocument, but once you step outside that realm it can be tricky to get everything to work right.

Thank you, Scott.  The Auto Save stuff in particular, despite a closed bug report that I filed a year ago, is still not very well explained.

But anyhow, after poking around some more I found that this was a case where I had thrown together a proof of concept, it pretty well worked, forgot to add "better think this through" to the bug tracker.

I see what I need to do now.  Two lessons learned…

• -[NSDocument close] bypasses any kind of saving, and that *is* documented :)

• Although this is not yet fully understood, invoking -[NSApp terminate:] with a delay to get it out of the same run loop wherein the document is closed makes it work properly (terminate the app).


_______________________________________________

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


References: 
 >How did I break Auto Save during -[NSApp terminate:]? (From: Jerry Krinock <email@hidden>)
 >Re: How did I break Auto Save during -[NSApp terminate:]? (From: Ken Thomases <email@hidden>)
 >Re: How did I break Auto Save during -[NSApp terminate:]? (From: Jerry Krinock <email@hidden>)
 >Re: How did I break Auto Save during -[NSApp terminate:]? (From: Jerry Krinock <email@hidden>)
 >Re: How did I break Auto Save during -[NSApp terminate:]? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: How did I break Auto Save during -[NSApp terminate:]?
  • Next by Date: Re: 3rd party executable in iOS project
  • Previous by thread: Re: How did I break Auto Save during -[NSApp terminate:]?
  • Next by thread: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
  • Index(es):
    • Date
    • Thread