open docs at quit time
open docs at quit time
- Subject: open docs at quit time
- From: Ken Victor <email@hidden>
- Date: Sat, 20 Aug 2005 14:55:33 -0700
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.
thanx,
ken
_______________________________________________
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