Enumeration

NSEvent.EventType

Topics

Event Types

case gesture

An event that represents a nonspecific type of gesture.

case magnify

An event representing a pinch open or pinch close gesture.

case swipe

An event representing a swipe gesture.

case rotate

An event representing a rotation gesture.

case beginGesture

An event that represents a gesture beginning.

case endGesture

An event that represents a gesture ending.

case smartMagnify

An event representing the smart zoom gesture.

case pressure

An event representing a change in pressure on a pressure-sensitive device (requires a 64-bit processor).

case quickLook

Supports the event responder method that initiates a Quicklook.

Enumeration Cases

See Also

Getting the Event Type

var type: NSEvent.EventType

The event’s type.

var subtype: NSEvent.EventSubtype

The event’s subtype.

enum NSEvent.EventSubtype

Subtypes for various types of events.

var modifierFlags: NSEvent.ModifierFlags

An integer bit field indicating the event’s modifier keys.

struct NSEvent.EventTypeMask

Constants that are masks for the events defined in NSEvent.EventType.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software