View Full Version : NSMenuItem Disabled when Enabled?

Oct 14, 2009, 11:16 AM
Hi all,

I'm trying to create a small app for a friend. What he wants is an app that swaps between windows on button presses and also from a menu item.

What I have done so far is to setup a function:

- (void)openFourthWindow:(NSMenuItem *)menuItem

and in the MainMenu.xib I have added that function to the first responder and connected it to the NSMenuItem which is enabled and the state is off. But when I run the app the MenuItem is disabled and I am at a loss to why it is doing this. Any suggestions, as always will be appreciated.