<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nstableview-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review symbols that are no longer in active development, and their recommended replacements.

## Overview

Although these symbols are available for use, Apple is no longer actively developing them, and may remove them in a future release. Apple recommends moving away from these symbols and using their indicated replacements instead. Check the individual symbol pages for the recommended replacements.

## Topics

### Deprecated methods

[`- (NSImage *) dragImageForRows:(NSArray *) dragRows event:(NSEvent *) dragEvent dragImageOffset:(NSPointPointer) dragImageOffset;`](/documentation/AppKit/NSTableView/dragImageForRows:event:dragImageOffset:)

Computes and returns an image to use for dragging.

[`- (void) setAutoresizesAllColumnsToFit:(BOOL) flag;`](/documentation/AppKit/NSTableView/setAutoresizesAllColumnsToFit:)

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

[`- (BOOL) autoresizesAllColumnsToFit;`](/documentation/AppKit/NSTableView/autoresizesAllColumnsToFit)

Returns a Boolean value that indicates if the table view proportionally resizes its columns to fit when its superview’s frame changes.

[`- (void) selectColumn:(NSInteger) column byExtendingSelection:(BOOL) extend;`](/documentation/AppKit/NSTableView/selectColumn:byExtendingSelection:)

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

[`- (void) selectRow:(NSInteger) row byExtendingSelection:(BOOL) extend;`](/documentation/AppKit/NSTableView/selectRow:byExtendingSelection:)

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

[`- (void) setDrawsGrid:(BOOL) flag;`](/documentation/AppKit/NSTableView/setDrawsGrid:)

Sets whether the table view draws a grid.

[`- (BOOL) drawsGrid;`](/documentation/AppKit/NSTableView/drawsGrid)

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

[`- (NSEnumerator *) selectedColumnEnumerator;`](/documentation/AppKit/NSTableView/selectedColumnEnumerator)

This method has been deprecated.

[`- (NSEnumerator *) selectedRowEnumerator;`](/documentation/AppKit/NSTableView/selectedRowEnumerator)

This method has been deprecated.

[`func focusedColumn() -> Int`](/documentation/AppKit/NSTableView/focusedColumn())

Returns the currently focused column.

[`func setFocusedColumn(Int)`](/documentation/AppKit/NSTableView/setFocusedColumn(_:))

Sets the currently focused column to the specified index.

[`func shouldFocusCell(NSCell, atColumn: Int, row: Int) -> Bool`](/documentation/AppKit/NSTableView/shouldFocusCell(_:atColumn:row:))

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

[`func performClickOnCell(atColumn: Int, row: Int)`](/documentation/AppKit/NSTableView/performClickOnCell(atColumn:row:))

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

[`func preparedCell(atColumn: Int, row: Int) -> NSCell?`](/documentation/AppKit/NSTableView/preparedCell(atColumn:row:))

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

[`- (NSRange) columnsInRect:(NSRect) rect;`](/documentation/AppKit/NSTableView/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.

[`- (BOOL) textShouldBeginEditing:(NSText *) textObject;`](/documentation/AppKit/NSTableView/textShouldBeginEditing:)

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

[`- (void) textDidBeginEditing:(NSNotification *) notification;`](/documentation/AppKit/NSTableView/textDidBeginEditing:)

Posts an [`textDidBeginEditingNotification`](/documentation/AppKit/NSControl/textDidBeginEditingNotification) to the default notification center.

[`- (void) textDidChange:(NSNotification *) notification;`](/documentation/AppKit/NSTableView/textDidChange:)

Sends [`textDidChange:`](/documentation/AppKit/NSTableView/textDidChange:) to the edited cell and posts an [`textDidChangeNotification`](/documentation/AppKit/NSControl/textDidChangeNotification) to the default notification center.

[`- (BOOL) textShouldEndEditing:(NSText *) textObject;`](/documentation/AppKit/NSTableView/textShouldEndEditing:)

Validates the text object for the cell being edited by querying the delegate.queries the delegate using [`control(_:textShouldEndEditing:)`](/documentation/AppKit/NSControlTextEditingDelegate/control(_:textShouldEndEditing:)), returning the delegate’s response if it responds to that method.

[`- (void) textDidEndEditing:(NSNotification *) notification;`](/documentation/AppKit/NSTableView/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).



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)