NSCombobox binding
NSCombobox binding
- Subject: NSCombobox binding
- From: Olivier Destrebecq <email@hidden>
- Date: Mon, 26 Jul 2004 14:53:21 -0400
I read the documentation on apple web site and still can't get it to
work.
Here is the description of the content binding from a combobox from
apple website
" content
An NSArrayController instance that provides the content of the
NSComboBox.
Unless contentValues is also bound, the titles of the items in the
NSComboBox are derived by invoking description for each of the content
objects."
If i understand this i just need to get this binding to point to an
array controller and put arrangedObject for the controllerKey
Then implement the description method in the object contained by the
array.
Unfortunately it seem like it manage to get a hold of the object in the
array, but it never send them the description message.
The contentValue binding is not bound
if i bound the contentValue then the value in the drop menu are
displayed correctly but it still pass the string value for the selected
object and not the actual object.
Any help appreciated
Olivier Destrebecq
http://www-personal.si.umich.edu/~olivier/portfolio/Resume.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.