Re: Programmatically selecting items in a popup menu?
Re: Programmatically selecting items in a popup menu?
- Subject: Re: Programmatically selecting items in a popup menu?
- From: j o a r <email@hidden>
- Date: Sun, 24 Mar 2002 20:08:47 +0100
On Sunday, March 24, 2002, at 06:19 , Daniel Kaesmayr wrote:
Is there any way to select a menu item of a popup menu by its tag?
Given that you have a popup menu, and know what tag you would like to
select:
NSPopUpButton *myPopUp;
int tagOfChoice;
You can select that item using something like this:
[myPopUp selectItemAtIndex:[myPopUp indexOfItemWithTag:tagOfChoice]];
j o a r
_______________________________________________
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.