Re: How do I enable a menu item?
Re: How do I enable a menu item?
- Subject: Re: How do I enable a menu item?
- From: "Erik M. Buck" <email@hidden>
- Date: Sat, 30 Mar 2002 20:52:40 -0600
- Organization: EMB & Assocites Inc.
Menu items are enabled automatically if their target responds to the menu
item's action.
There are many ways to disable a menu, but it is enabled by default if some
object can understand its message.
You probably misspelled a method name or the connection in IB is broken.
There is copious documentation on this subject. Also see first responder
topics.
----- Original Message -----
From: "Tony Gray" <email@hidden>
To: "Cocoa Dev List" <email@hidden>
Sent: Saturday, March 30, 2002 7:34 PM
Subject: How do I enable a menu item?
>
Hi,
>
>
I'm still learning Cocoa. I've just added my own menu item my
application's
>
application menu, and (when this is selected) I want this to call a method
>
in my application's controller. I can wire this up OK, but the problem
is,
>
this new menu is disabled, both when I test the interface in IB, and when
I
>
compile and run my app.
>
>
Do I have to programmatically enable my own custom menu items, or have I
>
missed something obvious (or otherwise!) in IB?
>
>
Tony
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.