---
title: userInfo
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstrackingarea/userinfo
---

# userInfo

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

## Declaration

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

## Discussion

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

## See Also

### Getting Object Attributes

- [options](appkit/nstrackingarea/options-swift.property.md)
- [owner](appkit/nstrackingarea/owner.md)
- [rect](appkit/nstrackingarea/rect.md)
