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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Efficiently implementing simple NSComboBox functionality with bindings Monaj Mac Programming 0 Jul 4, 2011 04:42 AM
NSMatrix simple binding question Monaj Mac Programming 1 Jun 16, 2011 08: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 10:14 AM
Torrent Client VPN Bind & Routing MOD.and.OP Mac Basics and Help 0 Dec 4, 2010 05:11 PM
Core Data bind entity's array values to nspopupbutton Chirone Mac Programming 1 Aug 20, 2009 12:19 AM


All times are GMT -5. The time now is 07:43 PM.

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

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