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

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


All times are GMT -5. The time now is 01:48 PM.

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

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