On 06/09/2012, at 10:44 AM, Jerry Krinock <je...@ieee.org> wrote: > Regarding the indication, I've yet to find a single hook in Cocoa which gives > me a reliable early warning that a document is closing.
If your document only has a single window, you could use: - (void) windowWillClose:(NSNotification*) notification; I've found this a reliable place (in fact the ONLY reliable place) to perform tear-down of KVO, etc. Of course if you support multiple windows of the same document that might need a bit of care to make work. --Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com