---
title: "toolTip(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/tooltip(for:)"
---

# toolTip(for:)

Returns the tooltip for the specified cell.

## Declaration

```swift
func toolTip(for cell: NSCell) -> String?
```

## Parameters

- `cell`: The cell for which to return the tooltip.

## Return Value

Return Value The string used as the cell’s tooltip.

## See Also

### Managing Attributes of Individual Cells

- [setState(_:atRow:column:)](appkit/nsmatrix/setstate(_:atrow:column:).md)
- [setToolTip(_:for:)](appkit/nsmatrix/settooltip(_:for:).md)
