Re: Being notified of current document change
Re: Being notified of current document change
- Subject: Re: Being notified of current document change
- From: Graham Cox <email@hidden>
- Date: Tue, 8 Jul 2008 01:56:49 +1000
I'm not sure if there is a better way, but subscribing to NSWindow
didBecomeMain/didResignMain, then using:
NSDocument* cd = [[NSDocumentController sharedDocumentController]
currentDocument];
is one way to do it.
hth,
Graham
On 8 Jul 2008, at 1:14 am, Laurent Cerveau wrote:
Hi
This is probably a stupid question but : in a NSDocument application
I did not found a way to be notified of change of currentDocument.
For now I do some tricks with notification on window but I was
wondering if I simply missed a part?
Thanks
laurent
_______________________________________________
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