Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 31, 2008, 03:28 PM   #1
liptonlover
macrumors 6502a
 
Join Date: Mar 2008
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.
Writing portfolio
liptonlover is offline   0 Reply With Quote
Old Aug 31, 2008, 07:39 PM   #2
stadidas
macrumors regular
 
Join Date: Feb 2006
Location: 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.
stadidas is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 09:35 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC