Re: Little problem with NSPopUpButton
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.