NSPressGestureRecognizer
A discrete gesture recognizer that tracks whether the user holds down a mouse button for a minimum amount of time before releasing it.
Declaration
class NSPressGestureRecognizerOverview
Use a press gesture recognizer to configure which button the user must hold and the length of time they must hold it. You can also specify how far the mouse can move for a valid gesture.
Upon creation, the gesture recognizer recognizes press gestures involving only the primary button. It also delays sending primary button events to the view by setting the delaysPrimaryMouseButtonEvents property to true. To change the set of buttons to track, modify the buttonMask property.