• 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
applicationWillTerminate and NSDocumentController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applicationWillTerminate and NSDocumentController


  • Subject: applicationWillTerminate and NSDocumentController
  • From: Adam Knight <email@hidden>
  • Date: Tue, 31 Jul 2007 12:58:10 -0500

I'm grabbing a list of documents (and then their fileURLs) at quit by putting code in applicationWillTerminate to cycle through NSDocumentController's documents method. This works, usually.

Specifically, it only works when documents have already been saved. If a document throws up the not saved/unsaved changes sheet, then when it finally gets to applicationWillTerminate the array of open documents is empty.

How can I get a list of open documents at quit and/or get it before NSDocumentController does whatever magic it's doing to get to the quit event before me?


Adam Knight codepoetry - http://www.codepoetry.net/products/ _______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: applicationWillTerminate and NSDocumentController
      • From: Martin Wierschin <email@hidden>
  • Prev by Date: Re: Default Instance of entity in Core Data Document
  • Next by Date: CoreData min and max entity settings
  • Previous by thread: Re: Default Instance of entity in Core Data Document
  • Next by thread: Re: applicationWillTerminate and NSDocumentController
  • Index(es):
    • Date
    • Thread