Skip navigation.
 
mlRe: Auto editing new enabled cells in NSTableView
FROM : Scott Stevenson
DATE : Wed Apr 06 17:34:42 2005

On Apr 6, 2005, at 5:10 AM, Christiaan Hofman wrote:

> [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?


By default, only one data cell is used for the entire table column. In
other words, you're probably reusing or replacing the existing cell
when you think you're making a new one.

      - Scott

--
http://treehouseideas.com/
http://theocacao.com/ [blog]

Related mailsAuthorDate
mlAuto editing new enabled cells in NSTableView Christiaan Hofman Apr 6, 14:10
mlRe: Auto editing new enabled cells in NSTableView Scott Stevenson Apr 6, 17:34