• 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: Little problem with NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Little problem with NSPopUpButton


  • Subject: Re: Little problem with NSPopUpButton
  • From: James DiPalma <email@hidden>
  • Date: Fri, 27 Dec 2002 17:10:19 -0500

From: Mike Ferris <email@hidden>
However, as Rakesh said, the more normal way to do what you want is with -indexOfSelectedItem.

Localization may affect your decision. I think that some popups will change their item ordering when localized (e.g. listing days of a week from Sunday-Saturday in America may get reordered in other localizations). Maybe this one case is so uncommon that it only affects this one type of popup data.

Some people use index, some people use tags; both work:
[sender indexOfSelectedItem]
[[sender selectedItem] tag]


-jim
_______________________________________________
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.

  • Follow-Ups:
    • Re: Little problem with NSPopUpButton
      • From: Mike Ferris <email@hidden>
  • Prev by Date: Mac OS X's Dock color
  • Next by Date: Re: Mac OS X's Dock color
  • Previous by thread: Little problem with NSPopUpButton
  • Next by thread: Re: Little problem with NSPopUpButton
  • Index(es):
    • Date
    • Thread