NSMenuItem Disabled when Enabled?

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

  1. SRossi
    Expand Collapse
    macrumors regular

    May 27, 2009
    Glasgow, Scotland
    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.



Share This Page