<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/ToolTipTag",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSToolTipTag"
  },
  "title" : "NSView.ToolTipTag"
}
-->

# NSView.ToolTipTag

This type describes the rectangle used to identify a tooltip rectangle.

```
typealias ToolTipTag = Int
```

## Discussion

If the value of this type is 0, it is invalid. See the methods [`addToolTip(_:owner:userData:)`](/documentation/AppKit/NSView/addToolTip(_:owner:userData:)) and[`removeToolTip(_:)`](/documentation/AppKit/NSView/removeToolTip(_:)).

---

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)