<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTrackingArea/userInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTrackingArea(py)userInfo"
  },
  "title" : "userInfo"
}
-->

# userInfo

The dictionary containing the data associated with the receiver when it was created.

```
var userInfo: [AnyHashable : Any]? { get }
```

## Discussion

You can obtain this dictionary per event in each [`mouseEntered(with:)`](/documentation/AppKit/NSResponder/mouseEntered(with:)) and [`mouseExited(with:)`](/documentation/AppKit/NSResponder/mouseExited(with:)) method by querying the passed-in `NSEvent` object with `[[event trackingArea] userData]`.

---

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)