<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMatrix/setToolTip(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMatrix(im)setToolTip:forCell:"
  },
  "title" : "setToolTip(_:for:)"
}
-->

# setToolTip(_:for:)

Sets the tooltip for the cell.

```
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.

## Discussion

---

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)