• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programmatically selecting items in a popup menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Programmatically selecting items in a popup menu? (From: Daniel Kaesmayr <email@hidden>)

  • Prev by Date: Re: 8-bit chars in @""
  • Next by Date: Re: 8-bit chars in @""
  • Previous by thread: Programmatically selecting items in a popup menu?
  • Next by thread: Project Builder Problems
  • Index(es):
    • Date
    • Thread