NSClickGestureRecognizer
A discrete gesture recognizer that tracks a specified number of mouse clicks.
Declaration
class NSClickGestureRecognizerOverview
When configuring this gesture recognizer, you can specify which mouse buttons must be clicked and how many clicks must occur before the action method is called. The user must click the specified mouse button the required number of times without dragging the mouse for the gesture to be recognized.
The gesture recognizer automatically sets the values of the delaysPrimaryMouseButtonEvents, delaysSecondaryMouseButtonEvents, and delaysOtherMouseButtonEvents properties to true for each button in the buttonMask property.