Re: NSPopUpButtonCell in custom NSTableColumn in NSTableView - not changing value
Re: NSPopUpButtonCell in custom NSTableColumn in NSTableView - not changing value
- Subject: Re: NSPopUpButtonCell in custom NSTableColumn in NSTableView - not changing value
- From: Andrew White <email@hidden>
- Date: Sat, 12 Mar 2005 02:19:50 +1100
stephane sudre wrote:
On Mar 11, 2005, at 3:17 PM, Andrew White wrote:
For reference: enabled is true, and
- (void) tableView: (NSTableView *) aTableView
setObjectValue: (id) anObject
ForTableColumn: (NSTableColumn *) aTableColumn
row: (int) rowIndex
is never called.
The answer is in the line above.
Leaving aside that your comment is only restating the symptoms, not an
answer, I'm not convinced. I installed an action in the menu, and when
that action is resolved the selected value is still the original (not the
changed value). The action code occurs before the table view is updated.
ie:
- Tweak cell from index 2 to index 3
- Action triggers. Value of [cell indexOfSelectedItem] is 2.
- tableView:objectValueForTableColumn:row triggers.
Something internal to the cell's own processing seems to be reseting its
value before we even get to action resolution.
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments are confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
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