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

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


  • Follow-Ups:
    • Re: open docs at quit time
      • From: Ken Victor <email@hidden>
References: 
 >open docs at quit time (From: Ken Victor <email@hidden>)

  • Prev by Date: Re: NSArrayController selection issue
  • Next by Date: NSOutlineView, Drag-and-Drop, [NSCFArray expandable]: selector not recognized
  • Previous by thread: open docs at quit time
  • Next by thread: Re: open docs at quit time
  • Index(es):
    • Date
    • Thread