Instance Property


The data associated with a mouse-tracking event.


var userData: UnsafeMutableRawPointer? { get }


Data is assigned to this property when the event is set up using the addTrackingRect(_:owner:userData:assumeInside:) method. This property is only valid if the event represents an NSMouseEntered or NSMouseExited event. This property raises an NSInternalInconsistencyException if it is accessed on any other type of event object.

See Also

Getting Mouse-Tracking Event Information

var eventNumber: Int

The counter value of the latest mouse or tracking-rectangle event object; every system-generated mouse and tracking-rectangle event increments this counter.

var trackingNumber: Int

The identifier of a mouse-tracking event.