Re: Menu States
Re: Menu States
- Subject: Re: Menu States
- From: Omar Qazi <email@hidden>
- Date: Thu, 11 May 2006 16:40:42 -0700
On May 11, 2006, at 7:28 AM, Cook, Mike wrote:
It says [curItem setState:NSOffState] but how do I know the value
to put for "curItem"
when I am in a routine that is called up by another menu item sent
to me
as "sender"? I know from a variable state what menu item it should be,
but how do I reference that in the language? (objective C)
Just put an IBOutlet to the Menu Item inside the controller class.
IBOutlet NSMenuItem *nameOfItem;
After that just connect it to the menu item using interface builder.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Menu States (From: "Cook, Mike" <email@hidden>) |