Contents

otherMouseDown(with:)

Informs the gesture recognizer that the user pressed a mouse button other than the left or right one.

Declaration

func otherMouseDown(with event: NSEvent)

Parameters

  • event:

    An object encapsulating information about the mouse-down event.

Discussion

The default implementation of this method does nothing. Use this method to start tracking the gesture in whatever way is appropriate.

A gesture recognizer monitors events that occur in its view (and any subviews) but does not take part in the responder chain itself. The gesture recognizer receives events before any views do. Use the delaysOtherMouseButtonEvents property to control whether event is propagated to the view.

See Also

Methods for Subclasses