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 Apr 18, 2012, 05:20 PM   #1
Richard Birkett
macrumors member
 
Join Date: Aug 2011
NSPopUpButton binding

Hello, I have an NSPopUpButton, an NSMutableArray of custom objects in my app delegate, and an array controller for it. I have a problem where adding an object to the array, either directly with addObject: or using the same on the controller WILL NOT CHANGE THE MENU. The object is added to the array ok, but it doesn't update. Here are my bindings:

Controller
Content Array -> App Delegate.constantArray

conPopUp
Content -> controller.arrangedObjects
Content values -> controller.arrangedObjects.listString
Selected object -> App Delegate.selectedConstant

The custom object is MMConstantFactor which declares a string method 'listString'. The app delegate has an NSMutableArray constantArray and MMConstantFactor selectedConstant.

Any help is massively appreciated, I'm in a rush!
Richard Birkett 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
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 selected item Dreamspinner Mac Programming 6 Dec 18, 2012 06:44 AM
NSPopupButton Bindings knightlie Mac Programming 0 Jun 4, 2012 11:32 AM

Forum Jump

All times are GMT -5. The time now is 12:52 AM.

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

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