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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to