|Aug 31, 2008, 04: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, 08: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|
|Efficiently implementing simple NSComboBox functionality with bindings||Monaj||Mac Programming||0||Jul 4, 2011 05:42 AM|
|NSMatrix simple binding question||Monaj||Mac Programming||1||Jun 16, 2011 09:32 AM|
|Can't bind system to AD, can bind others. Username/Password Error||CAJensen01||Mac OS X Server, Xserve, and Networking||3||Dec 15, 2010 11:14 AM|
|Torrent Client VPN Bind & Routing||MOD.and.OP||Mac Basics and Help||0||Dec 4, 2010 06:11 PM|
|Core Data bind entity's array values to nspopupbutton||Chirone||Mac Programming||1||Aug 20, 2009 01:19 AM|
All times are GMT -5. The time now is 03:27 PM.