Re: Value Selection bindings oddity
Re: Value Selection bindings oddity
- Subject: Re: Value Selection bindings oddity
- From: Timothy Reaves <email@hidden>
- Date: Sun, 4 Dec 2005 19:19:11 -0500
On Dec 4, 2005, at 6:53 PM, Timothy Reaves wrote:
I have a NSComboBox with all three Value Selection bindings bound.
content - NSArrayController arangedObjects
contentValues - NSArrayController arangedObjects name
value - NSObjectController selection foo
The NSArrayController is for entities of type Foo, and name is the
attribute I want displayed in the combo box. That works fine, and
behaves as expected. When a user selects an object, the value is
bound to the foo attribute of another entity.
I have a breakpoint set on the setFoo method. It is called as
soon as a selection is made in the combo box, however, instead of
an instance of Foo, the setFoo method is called with an instance of
NFCString. So it appears that value is bindings the displayed
value, not the object it represents.
Am I doing anything obviously incorrect here?
_______________________________________________
When I change from NSComboBox to NSPopUpButton this issue does not
exist.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden