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

# toolTip(for:)

Returns the tooltip for the specified cell.

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

## Parameters

`cell`

The cell for which to return the tooltip.

## Return Value

The string used as the cell’s 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)