Instance Property

trackingArea

The NSTrackingArea object for the event.

Declaration

@property(readonly, strong) NSTrackingArea *trackingArea;

Discussion

If accessed on an event that is not a mouse-tracking event (that is, an event of type NSMouseEntered, NSMouseExited, or NSCursorUpdate), this property raises an NSInternalInconsistencyException.

If no NSTrackingArea object is associated with the event because the event corresponds to a tracking rectangle installed with the NSView method addTrackingRect:owner:userData:assumeInside:, this method returns nil. Note that the trackingNumber property returns either an NSTrackingArea object or the NSTrackingRectTag constant depending on how the event was generated.

See Also

Getting Mouse-Tracking Event Information

eventNumber

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

trackingNumber

The identifier of a mouse-tracking event.

userData

The data associated with a mouse-tracking event.