Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blackenedheart

macrumors newbie
Original poster
Hi,

I am new to this forum and I am asking my first question after searching for a solution and not finding an answer. Can anybody explain to me how they would set up a NSPopUpButton so that when a value is chosen from the dropdown list, and floating point variable is represented and chosen?

For example, let say I had an NSPopUpButton with 3 choices. The three items to choose from are Wine, Beer, and Vodka.

If I wanted Wine = 2.75, and Beer = 3.75, and Vodka = 4.75, how would most people set this up?

I am more familiar with iOS development and I am getting lost with the NSPopUpButton class.

Thanks in advance for any help I may recieve.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.