Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applicationWillTerminate and NSDocumentController



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.