• 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
open docs at quit time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: open docs at quit time
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: using bless to change boot device
  • Next by Date: Re: Strange Managed Context Error
  • Previous by thread: WSMakeStubs/WSGenerateObj findings calling ASP.NET webservice
  • Next by thread: Re: open docs at quit time
  • Index(es):
    • Date
    • Thread