Instance Method

editColumn:row:withEvent:select:

Edits the cell at the specified column and row using the specified event and selection behavior.

Declaration

- (void)editColumn:(NSInteger)column row:(NSInteger)row withEvent:(NSEvent *)event select:(BOOL)select;

Parameters

columnIndex

The index of the column in the tableColumns array.

rowIndex

The row index.

theEvent

The event.

flag

YES if the entered contents should be selected, otherwise NO.

Discussion

This method is invoked automatically in response to user actions; you should rarely need to invoke it directly. theEvent is usually the mouse event that triggered editing; it can be nil when starting an edit programmatically.

This method scrolls the table view so that the cell is visible and sets up the field editor. If flag is NO, it calls the editWithFrame:inView:editor:delegate:event: method of the field editor’s NSCell object, providing the NSTableView as the text delegate. If flag is YES, this method calls the selectWithFrame:inView:editor:delegate:start:length: method instead.

This method can be overridden to customize drawing for rowIndex when using NSCell-based table views.

See Also

Editing Cells

editedColumn

The index of the column being edited.

editedRow

The index of the row being edited.