Instance Method

addTrackingArea(_:)

Adds a given tracking area to the view.

Declaration

func addTrackingArea(_ trackingArea: NSTrackingArea)

Parameters

trackingArea

The tracking area to add to the view.

See Also

Managing Tracking Areas

func removeTrackingArea(NSTrackingArea)

Removes a given tracking area from the view.

var trackingAreas: [NSTrackingArea]

An array of the view’s tracking areas.

func updateTrackingAreas()

Invoked automatically when the view’s geometry changes such that its tracking areas need to be recalculated.