Hi guys,
I've got a tough problem I think. I have a normal document-based app, in the main Document.nib I have 2 windows. I have the editor window, and another separate window (I'll call this WinB).
To open WinB from the MainMenu.nib, I do the usual 'makeKeyAndOrderFront' in my NSDocument subclass. To run this method from the MainMenu, I add the method name to the First Responder. So I launch my app, and I get this menu:
WinB's menu item is 'Snippets'. So this loads the window fine. Now, if I say load a window from a different nib and bring it to the front, the menu turns to this, keep in mind that the document window is no longer in front:
[The reason Projects is enabled is because its in its own nib]
So what I want to happen, is the 'Snippets' item be enabled no matter what. Moving the window to a different nib is not an option, any ideas?
Thanks,
Oliver