Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SRossi

macrumors regular
Original poster
May 27, 2009
202
0
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:

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.