---
title: toolTip
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/tooltip
---

# toolTip

The text for the view’s tooltip.

## Declaration

```swift
var toolTip: String? { get set }
```

## Discussion

Discussion The value of this property is nil if the view does not currently display tooltip text. Assigning a value to this property causes the tooltip to be displayed for the view. Setting the property to nil cancels the display of the tooltip for the view.

## See Also

### Providing a Tool Tip

- [addToolTip(_:owner:userData:)](appkit/nsview/addtooltip(_:owner:userdata:).md)
- [removeAllToolTips()](appkit/nsview/removealltooltips().md)
- [removeToolTip(_:)](appkit/nsview/removetooltip(_:).md)
- [NSView.ToolTipTag](appkit/nsview/tooltiptag.md)
