Re: How did I break Auto Save during -[NSApp terminate:]?
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