NSComboBoxCell on a NSTableColumn getting and setting its value from/to the model through bindings
NSComboBoxCell on a NSTableColumn getting and setting its value from/to the model through bindings
- Subject: NSComboBoxCell on a NSTableColumn getting and setting its value from/to the model through bindings
- From: Bert Torfs <email@hidden>
- Date: Thu, 3 Feb 2005 20:58:07 +0100
Hi all,
I have a NSComboBoxCell set (programatically) on a tablecolum that gets
and sycnhronizes its value with my model through bindings.
Auto-completes is on, and works marvelously. Opening the combobox -
either by clicking or down-arrow-pushing is OK as well. When I type,
the combobox scrolls to the right row etc... . Tabbing out of the cell
updates the model.
BUT (would I post if there was no but?) when I select a value from the
combobox (clicking on an item on the list or pressing <enter> with an
item selected), the new value is not set in the model object (the
setter is not called). This causes the change to be undone as soon as I
tab out of the cell. When typing and using autocompletes (combobox
closed), the setter of my model gets called as expected.
I use a custom NSComboBoxCell on a custom NSTableView. When I select an
item from the combobox, a custom setObjectValue is executed on the
cell. That method does nothing (in that case) but calling the super
implementation.
Anyone any idea where I should start looking? Or how I can - from
inside the setObjectValue method of my NSComboBoxCell descendant -
force the controller to update the view?
Thanks a lot.
_______________________________________________
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