applicationWillTerminate and NSDocumentController
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