Instance Method

textShouldEndEditing:

Validates the text object for the cell being edited by querying the delegate.queries the delegate using control:textShouldEndEditing:, returning the delegate’s response if it responds to that method.

Declaration

- (BOOL)textShouldEndEditing:(NSText *)textObject;

Parameters

textObject

The NSText object for the cell.

Return Value

Returns the value of the delegate’s implementation of control:textShouldEndEditing:. If the delegate does not implement the method, returns YES if the cell’s new value is valid, otherwise NO.

Discussion

See the NSText class specification for more information on this text delegate method.

See Also

Deprecated Methods

- dragImageForRows:event:dragImageOffset:

Computes and returns an image to use for dragging.

Deprecated
- setAutoresizesAllColumnsToFit:

Controls whether the table view proportionally resizes its columns to fit when its superview’s frame changes.

Deprecated
- autoresizesAllColumnsToFit

Returns YES if the table view proportionally resizes its columns to fit when its superview’s frame changes, NO if it only resizes the last column.

Deprecated
- selectColumn:byExtendingSelection:

Selects the column at the specified index, optionally extending any existing selection.

Deprecated
- selectRow:byExtendingSelection:

Selects a row at the specified index, optionally extending any existing selection.

Deprecated
- tableView:writeRows:toPasteboard:

Writes the specified rows to the specified pasteboard.

Deprecated
- setDrawsGrid:

Sets whether the table view draws a grid.

Deprecated
- drawsGrid

Returns a Boolean value that indicates whether the table view draws a grid.

Deprecated
- selectedColumnEnumerator

This method has been deprecated.

Deprecated
- selectedRowEnumerator

This method has been deprecated.

Deprecated
- focusedColumn

Returns the currently focused column.

Deprecated
- setFocusedColumn:

Sets the currently focused column to the specified index.

Deprecated
- shouldFocusCell:atColumn:row:

Returns whether the fully prepared cell at the specified row and column can be made the focused cell.

Deprecated
- performClickOnCellAtColumn:row:

Performs a click action on the cell at the specified row and column.

Deprecated
- preparedCellAtColumn:row:

Returns the fully prepared cell that the table view will use for drawing or processing of the specified row and column.

Deprecated
- columnsInRect:

Returns a range of indexes for the table view’s columns that lie wholly or partially within the horizontal boundaries of the specified rectangle.

Deprecated
- textShouldBeginEditing:

Queries the delegate to determine if the text should begin editing.

Deprecated
- textDidBeginEditing:

Posts an NSControlTextDidBeginEditingNotification to the default notification center.

Deprecated
- textDidChange:

Sends textDidChange: to the edited cell and posts an NSControlTextDidChangeNotification to the default notification center.

Deprecated
- textDidEndEditing:

Updates the data source based on the newly edited value and selects another cell for editing if possible according to the character that ended editing (Return, Tab, Backtab).

Deprecated