---
title: "view(_:stringForToolTip:point:userData:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsviewtooltipowner/view(_:stringfortooltip:point:userdata:)"
---

# view(_:stringForToolTip:point:userData:)

Returns the tool tip string to be displayed due to the cursor pausing at location point within the tool tip rectangle identified by tag in the view view.

## Declaration

```swift
@MainActor func view(_ view: NSView, stringForToolTip tag: NSView.ToolTipTag, point: NSPoint, userData data: UnsafeMutableRawPointer?) -> String
```

## Discussion

Discussion userData is additional information provided by the creator of the tool tip rectangle.

## See Also

### Related Documentation

- [Online Help](apple-archive/documentation/Cocoa/Conceptual/OnlineHelp.md)
- [addToolTip(_:owner:userData:)](appkit/nsview/addtooltip(_:owner:userdata:).md)
