NSPopupbutton binding setter getter....
NSPopupbutton binding setter getter....
- Subject: NSPopupbutton binding setter getter....
- From: R <email@hidden>
- Date: Thu, 07 Jul 2011 17:23:52 -0700 (PDT)
I'm trying to understand when NSPopupbutton calls setter and getters
in bindings.
I have an array, an array controller, a tableview, a labelview and a
NSPopupbutton.
The arraycontroller generates objects (via add/remove) and loads them
into the tableview via a binding. Let's say we have a one column
tableview populated by anObject.nameValue which is a string.
The popupbutton is populated with the content from the arraycontroller
via a binding.
The popbutton selected-content (or value) is bound to a variable.
The labelview is bound to the same variable.
I've manually written setters / getters for the labelview variable.
I'm finding that NSPopUpButton will NOT call the setter or getter if
the fields for the popupbutton are all the same name (pointer vales
are different).
If I change a name in the tableview, then select the new name with the
popupbutton, the setter/getter are called.
This presents many problems.... thoughts?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden