Enumeration

NSEventType

Topics

Event Types

NSEventTypeLeftMouseDown

The user pressed the left mouse button.

NSEventTypeLeftMouseUp

The user released the left mouse button.

NSEventTypeRightMouseDown

The user pressed the right mouse button.

NSEventTypeRightMouseUp

The user released the right mouse button.

NSEventTypeMouseMoved

The user moved the mouse in a way that caused the cursor to move onscreen.

NSEventTypeLeftMouseDragged

The user moved the mouse while holding down the left mouse button.

NSEventTypeRightMouseDragged

The user moved the mouse while holding down the right mouse button.

NSEventTypeMouseEntered

The cursor entered a well-defined area, such as a view.

NSEventTypeMouseExited

The cursor exited a well-defined area, such as a view.

NSEventTypeKeyDown

The user pressed a key on the keyboard.

NSEventTypeKeyUp

The user released a key on the keyboard.

NSEventTypeFlagsChanged

The event flags changed.

NSEventTypeAppKitDefined

An AppKit-related event occurred.

NSEventTypeSystemDefined

A system-related event occurred.

NSEventTypeApplicationDefined

An app-defined event occurred.

NSEventTypePeriodic

An event that provides execution time to periodic tasks.

NSEventTypeCursorUpdate

An event that updates the cursor.

NSEventTypeScrollWheel

The scroll wheel position changed.

NSEventTypeTabletPoint

The user touched a point on a tablet.

NSEventTypeTabletProximity

A pointing device is near, but not touching, the associated tablet.

NSEventTypeOtherMouseDown

The user pressed a tertiary mouse button.

NSEventTypeOtherMouseUp

The user released a tertiary mouse button.

NSEventTypeOtherMouseDragged

The user moved the mouse while holding down a tertiary mouse button.

NSEventTypeGesture

The user performed a nonspecific type of gesture.

NSEventTypeMagnify

The user performed a pinch-open or pinch-close gesture.

NSEventTypeSwipe

The user performed a swipe gesture.

NSEventTypeRotate

The user performed a rotate gesture.

NSEventTypeBeginGesture

An event marking the beginning of a gesture.

NSEventTypeEndGesture

An event that marks the end of a gesture.

NSEventTypeSmartMagnify

The user performed a smart-zoom gesture.

NSEventTypePressure

An event that reports a change in pressure on a pressure-sensitive device.

NSEventTypeDirectTouch

The user touched a portion of the touch bar.

NSEventTypeQuickLook

An event that initiates a Quick Look request.

NSEventTypeChangeMode

The user changed the mode of a connected device.

Deprecated

NSLeftMouseDown

A left mouse-down event.

Deprecated
NSLeftMouseUp

A left mouse-up event.

Deprecated
NSRightMouseDown

A right mouse-down event.

Deprecated
NSRightMouseUp

A right mouse-up event.

Deprecated
NSOtherMouseDown

An other mouse-down event.

Deprecated
NSOtherMouseUp

An other mouse-up event.

Deprecated
NSMouseMoved

A mouse-moved event.

Deprecated
NSLeftMouseDragged

A left mouse-dragged event.

Deprecated
NSRightMouseDragged

A right mouse-dragged event.

Deprecated
NSOtherMouseDragged

An other mouse-dragged event.

Deprecated
NSMouseEntered

A mouse-entered event.

Deprecated
NSMouseExited

A mouse-exited event.

Deprecated
NSCursorUpdate

A cursor-update event.

Deprecated
NSKeyDown

A key-down event.

Deprecated
NSKeyUp

A key-up event.

Deprecated
NSFlagsChanged

A flags-changed event.

Deprecated
NSAppKitDefined

An AppKit-defined event.

Deprecated
NSSystemDefined

A system-defined event.

Deprecated
NSApplicationDefined

An app-defined event.

Deprecated
NSPeriodic

A periodic event.

Deprecated
NSScrollWheel

A scroll-wheel event.

Deprecated
NSTabletPoint

An event representing the current state of a tablet pointing device, including its location, pressure, and tilt.

Deprecated
NSTabletProximity

An event representing the proximity of a pointing device to its tablet.

Deprecated

See Also

Getting the Event Type

type

The event’s type.

subtype

The event’s subtype.

NSEventSubtype

Subtypes for various types of events.

modifierFlags

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

NSEventMask

Constants that you use to filter out specific event types from the stream of incoming events.