---
title: "setToolTip(_:for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/settooltip(_:for:)"
---

# setToolTip(_:for:)

Sets the tooltip for the cell.

## Declaration

```swift
func setToolTip(_ toolTipString: String?, for cell: NSCell)
```

## Parameters

- `toolTipString`: The string to use as the cell’s tooltip (or help tag).
- `cell`: The cell to which to assign the tooltip.

## See Also

### Managing Attributes of Individual Cells

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