RE: Menu States
RE: Menu States
- Subject: RE: Menu States
- From: "Cook, Mike" <email@hidden>
- Date: Mon, 15 May 2006 10:54:42 +0100
- Thread-topic: Menu States
Mike Cook
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.
Thanks very much that worked a treat. Just the job.
_______________________________________________
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