Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Menus, Windows & NSDocument

Menus, Windows & NSDocument
Thread Tools
Grizzled Veteran
Join Date: Jun 2002
Status: Offline
Reply With Quote
Mar 6, 2004, 08:22 AM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2