Re: Being notified of current document change

2008-07-07 Thread Graham Cox
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

Being notified of current document change

2008-07-07 Thread Laurent Cerveau
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 __