On 2013 Oct 21, at 16:23, Scott Ribe <scott_r...@elevated-dev.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to