FROM : Christiaan Hofman
DATE : Wed Apr 06 14:10:41 2005
Hi,
I have an NSTableView with text cells which can be either enabled or
disabled, depending on some flag. I set its Enabled flag in
tableView:willDisplayCell:forTableColumn:row: (both ways of course).
When I add a new item I want to edit the new cell, using
[myTableView selectRow:row byExtendingSelection:NO]; // I want to be
10.2 compatible
[myTableView editColumn:0 row:newRow withEvent:nil select:YES];
The new cell is always editable.
The problem is that when an uneditable cell was selected, the new cell
will not be edited. When an editable cell was selected, it is edited.
This smells to me like a bug. Can anyone help me with this, maybe a
workaround?
Thanks,
Christiaan
DATE : Wed Apr 06 14:10:41 2005
Hi,
I have an NSTableView with text cells which can be either enabled or
disabled, depending on some flag. I set its Enabled flag in
tableView:willDisplayCell:forTableColumn:row: (both ways of course).
When I add a new item I want to edit the new cell, using
[myTableView selectRow:row byExtendingSelection:NO]; // I want to be
10.2 compatible
[myTableView editColumn:0 row:newRow withEvent:nil select:YES];
The new cell is always editable.
The problem is that when an uneditable cell was selected, the new cell
will not be edited. When an editable cell was selected, it is edited.
This smells to me like a bug. Can anyone help me with this, maybe a
workaround?
Thanks,
Christiaan
| Related mails | Author | Date |
|---|---|---|
| Christiaan Hofman | Apr 6, 14:10 | |
| Scott Stevenson | Apr 6, 17:34 |






Cocoa mail archive

