NSPopUpButton Question...

Discussion in 'Mac Apps and Mac App Store' started by blackenedheart, Sep 3, 2013.

  1. blackenedheart macrumors newbie

    Sep 3, 2013

    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.
  2. Blakeasd macrumors 6502a

    Dec 29, 2009
    This is in the wrong spot here on MacRumors. It should be in the Mac Programming Section.

Share This Page