|Aug 31, 2008, 03:28 PM||#1|
binding MutableArray to NSPopUpButton
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?
Failure is not an option. It comes bundled with Windows.
|Aug 31, 2008, 07:39 PM||#2|
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.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Resolved: Getting the length of a MutableArray||ghall||iPhone/iPad Programming||8||Mar 2, 2014 11:36 AM|
|Looking for OD only binding script / need help with binding to OD with DPS||dabizkitman||Mac OS X Server, Xserve, and Networking||5||Jan 9, 2014 10:29 AM|
|NSPopUpButton Question...||blackenedheart||Mac Programming||8||Sep 5, 2013 06:42 AM|
|NSPopUpButton Question...||blackenedheart||Mac Applications and Mac App Store||1||Sep 3, 2013 07:18 PM|
|NSPopupButton Bindings||knightlie||Mac Programming||0||Jun 4, 2012 11:32 AM|
All times are GMT -5. The time now is 09:35 PM.