NSMenuItem Disabled when Enabled?

Discussion in 'Mac Programming' started by SRossi, Oct 14, 2009.

  1. macrumors regular

    Joined:
    May 27, 2009
    Location:
    Glasgow, Scotland
    #1
    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:

    Code:
    - (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.

    Thanks,

    Stephen
     

Share This Page