Re: open docs at quit time
Re: open docs at quit time
- Subject: Re: open docs at quit time
- From: Scott Anguish <email@hidden>
- Date: Mon, 22 Aug 2005 14:39:41 -0700
On Aug 20, 2005, at 2:55 PM, Ken Victor wrote:
i'd like to maintain a list (in preferences) of any documents the
user had open when quitting my app so that i can re-open them the
next time my app is launched. i'd like to include in this list any
docs that were new and saved as part of the quit process. and i'd
like this to work regardless of how my app is quit, ie, whether it
was quit via a menu selection or via an apple event.
i must be missing something simple as i've now spent a couple of
days and haven't been able to get it to work in all cases. i've
been "playing around with" applicationShouldTerminate and
applicationWillTerminate and even with a custom
NSDocumentController (overriding closeAllDocumentsWithDelegate and
reviewUnsavedDocumentsWithAlertTitle). i've read the documentation
about graceful app termination and done a few google searches.
i'd appreciate any pointers and/or sample code.
Is there a reason you can't use the autosave behavior released
in Tiger as part of NSDocument?
It's only really documented in the release notes at the moment I think
http://developer.apple.com/releasenotes/Cocoa/AppKit.html
New NSDocumentController Methods for Autosaving
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden