Re: NSDocument notification
Re: NSDocument notification
- Subject: Re: NSDocument notification
- From: Ricky Sharp <email@hidden>
- Date: Wed, 24 Nov 2004 20:01:01 -0600
On Nov 24, 2004, at 7:32 PM, Greg wrote:
Are there any notifications I can listen for when you have multiple
documents open and one that is not the front most is brought to the
front and made the current document or do I have to subclass
NSDocumentController?
How about NSWindowDidBecomeKeyNotification? That will allow you to
obtain the NSWindow of what just became key. Given that window, you
could always get its document with NSDocumentController's
documentForWindow.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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