[Xcode] NSComboBox + NSMatrix

Discussion in 'Mac Programming' started by Flybro, Jun 23, 2010.

  1. Flybro macrumors newbie

    Joined:
    May 21, 2009
    Location:
    Down Under
    #1
    G'Day

    Anyone can tell me, please, how to make NScomboBox depend on NSMatrix?
    For example, if I choose Vegetables from NSMatrix then combo box should contain only vegetables, if I choose Fruits then only fruits should be on the list, and so on.

    Cheers,
    Flybro
     
  2. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #2
    Set an action on the matrix, in that method read the matrix value and then filter and refresh the contents of your combo box based on the selection.
     

Share This Page