Value Selection bindings oddity
Value Selection bindings oddity
- Subject: Value Selection bindings oddity
- From: Timothy Reaves <email@hidden>
- Date: Sun, 4 Dec 2005 18:53:06 -0500
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?
_______________________________________________
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