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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to