Document notifications?
Document notifications?
- Subject: Document notifications?
- From: Mark Dawson <email@hidden>
- Date: Mon, 25 Apr 2005 19:11:42 -0700
In my preference window, I'd like to know when documents change--added, deleted (closed), change to becoming the "current" document, and when their title's (displayName) change. In my case, there is a 1:1 correspondence between a document and window (i.e., there is only one window for a document).
Is this functionality something I need to add in, or is it available already? I didn't see anything off hand in NSDocument or NSDocumentController in regards to the above notifications.
If I DO need to add the functionality, I figure I can listen for the window's
NSWindowDidResignMainNotification event, which should catch the add, close, and change-from-current-doc cases. It seems the only thing I would have to add is maybe a category to NSWindow's setDisplayName that brodcast's a notification…
Thanks,
mark
_______________________________________________
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