---
title: "tableView(_:shouldShowCellExpansionFor:row:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableviewdelegate/tableview(_:shouldshowcellexpansionfor:row:)"
---

# tableView(_:shouldShowCellExpansionFor:row:)

Asks the delegate if an expansion tooltip should be displayed for a specific row and column.

## Declaration

```swift
@MainActor optional func tableView(_ tableView: NSTableView, shouldShowCellExpansionFor tableColumn: NSTableColumn?, row: Int) -> Bool
```

## Parameters

- `tableView`: The table view that sent the message.
- `tableColumn`: The table column.
- `row`: The row index.

## Return Value

Return Value true if an expansion tooltip should be displayed, false otherwise.

## Discussion

Discussion An expansion tooltip can be displayed when the pointer hovers over a cell that contains truncated text. When this method returns true, the cell’s full contents is shown in an expansion tooltip, which looks similar to a help tag. note: This method is only valid for NSCell-based table views.

## See Also

### Providing cells for rows and columns

- [tableView(_:willDisplayCell:for:row:)](appkit/nstableviewdelegate/tableview(_:willdisplaycell:for:row:).md)
- [tableView(_:dataCellFor:row:)](appkit/nstableviewdelegate/tableview(_:datacellfor:row:).md)
- [tableView(_:toolTipFor:rect:tableColumn:row:mouseLocation:)](appkit/nstableviewdelegate/tableview(_:tooltipfor:rect:tablecolumn:row:mouselocation:).md)
