binding MutableArray to NSPopUpButton

Discussion in 'Mac Programming' started by liptonlover, Aug 31, 2008.

  1. macrumors 6502a

    Mar 13, 2008
    Popup buttons seem to be a bit different from a tableview... but it's what I need for my application. I can't figure out how to get a list of custom objects to show up, to edit how many are in the list, and how to act when one is selected. Can anyone help?
  2. macrumors regular

    Feb 27, 2006
    Kent, United Kingdom
    You need to bind the content of the popup button to the array controller's arranged objects, bind the content values to the array controller's arranged objects, and set the key path to which ever variable you want to display, and bind the popup button's selected index to the array controller with the controller key set to selectionIndex.

Share This Page