Re: "About" menu item is greyed out.
Re: "About" menu item is greyed out.
- Subject: Re: "About" menu item is greyed out.
- From: Graham Cox <email@hidden>
- Date: Sat, 21 May 2011 09:50:25 +1000
On 21/05/2011, at 8:20 AM, JAMES ROGERS wrote:
> IB Inspector indicates the item is enabled. But when I build and run the app, it is greyed out.
> I am new to cocoa development and have no idea where to look other than IB.
Is the menu item connected to an action? The default action should be -orderFrontStandardAboutPanel:, and the target is 'Files Owner' of MainMenu.xib, in other words, the application.
If this wiring is not there, the item will be greyed out. If this wiring is different, it will be greyed out if the target object does not implement the action, or if the target object implements the -validateUserInterfaceItem: protocol and does not specifically enable the item (given that you're just starting, this latter scenario seems very unlikely to be the cause).
Highlight the menu item in IB and look at its connections in the Inspector's 'Sent Actions' section (or right-click).
--Graham_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden