Gestures

Encapsulate your app's event-handling logic in gesture recognizers so that you can reuse that code throughout your app.

Topics

Standard Gestures

NSClickGestureRecognizer

A discrete gesture recognizer that tracks a specified number of mouse clicks.

NSPressGestureRecognizer

A discrete gesture recognizer that tracks whether the user held down a mouse button for a minimum amount of time before releasing it.

NSPanGestureRecognizer

A continuous gesture recognizer for panning (dragging) gestures.

NSRotationGestureRecognizer

A continuous gesture recognizer that tracks two trackpad touches moving opposite each other in a circular motion.

NSMagnificationGestureRecognizer

A continuous gesture recognizer that tracks a pinch gesture used to magnify content.

Custom Gestures

NSGestureRecognizer

An object that monitors events and calls its action method when a predefined sequence of events occur.

NSGestureRecognizerDelegate

A set of methods for fine-tuning a gesture recognizer’s behavior.

See Also

User Interactions

Mouse, Keyboard, and Trackpad

Handle events related to mouse, keyboard, and trackpad input.

Drag and Drop

Support the direct manipulation of your app's content using drag and drop.

Accessibility

Make your app more accessible to users with disabilities.