Enumeration

NSEventMask

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

Declaration

typedef enum NSEventMask : unsigned long long {
    ...
} NSEventMask;

Overview

Pass these constants to the NSCell method sendActionOn: to specify when an NSCell object should send its action message.

Topics

Event Types

NSEventMaskLeftMouseDown

A mask for left mouse-down events.

NSEventMaskLeftMouseUp

A mask for left mouse-up events.

NSEventMaskRightMouseDown

A mask for right mouse-down events.

NSEventMaskRightMouseUp

A mask for right mouse-up events.

NSEventMaskMouseMoved

A mask for mouse-moved events.

NSEventMaskLeftMouseDragged

A mask for left mouse-dragged events.

NSEventMaskRightMouseDragged

A mask for right mouse-dragged events.

NSEventMaskMouseEntered

A mask for mouse-entered events.

NSEventMaskMouseExited

A mask for mouse-exited events.

NSEventMaskKeyDown

A mask for key-down events.

NSEventMaskKeyUp

A mask for key-up events.

NSEventMaskFlagsChanged

A mask for flags-changed events.

NSEventMaskAppKitDefined

A mask for AppKit–defined events.

NSEventMaskSystemDefined

A mask for system-defined events.

NSEventMaskApplicationDefined

A mask for app-defined events.

NSEventMaskPeriodic

A mask for periodic events.

NSEventMaskCursorUpdate

A mask for cursor-update events.

NSEventMaskScrollWheel

A mask for scroll-wheel events.

NSEventMaskTabletPoint

A mask for tablet-point events.

NSEventMaskTabletProximity

A mask for tablet-proximity events.

NSEventMaskOtherMouseDown

A mask for tertiary mouse-down events.

NSEventMaskOtherMouseUp

A mask for tertiary mouse-up events.

NSEventMaskOtherMouseDragged

A mask for tertiary mouse-dragged events.

NSEventMaskGesture

A mask for generic gesture events.

NSEventMaskMagnify

A mask for magnify-gesture events.

NSEventMaskSwipe

A mask for swipe-gesture events.

NSEventMaskRotate

A mask for rotate-gesture events.

NSEventMaskBeginGesture

A mask for begin-gesture events.

NSEventMaskEndGesture

A mask for end-gesture events.

NSEventMaskSmartMagnify

A mask for smart-zoom gesture events.

NSEventMaskPressure

A mask for pressure-change events.

NSEventMaskDirectTouch

A mask for touch events.

NSEventMaskChangeMode

A mask for change-mode events.

NSEventMaskAny

A mask that matches any type of event.

Deprecated Types

NSLeftMouseDownMask

A mask for left mouse-down events.

Deprecated
NSLeftMouseUpMask

A mask for left mouse-up events.

Deprecated
NSRightMouseDownMask

A mask for right mouse-down events.

Deprecated
NSRightMouseUpMask

A mask for right mouse-up events.

Deprecated
NSOtherMouseDownMask

A mask for other mouse-down events.

Deprecated
NSOtherMouseUpMask

A mask for other mouse-up events.

Deprecated
NSMouseMovedMask

A mask for mouse-moved events.

Deprecated
NSLeftMouseDraggedMask

A mask for left mouse-dragged events.

Deprecated
NSRightMouseDraggedMask

A mask for right mouse-dragged events.

Deprecated
NSOtherMouseDraggedMask

A mask for other mouse-dragged events.

Deprecated
NSMouseEnteredMask

A mask for mouse-entered events.

Deprecated
NSMouseExitedMask

A mask for mouse-exited events.

Deprecated
NSCursorUpdateMask

A mask for cursor-update events.

Deprecated
NSKeyDownMask

A mask for key-down events.

Deprecated
NSKeyUpMask

A mask for key-up events.

Deprecated
NSFlagsChangedMask

A mask for flags-changed events.

Deprecated
NSAppKitDefinedMask

A mask for AppKit-defined events.

Deprecated
NSSystemDefinedMask

A mask for system-defined events.

Deprecated
NSApplicationDefinedMask

A mask for app-defined events.

Deprecated
NSPeriodicMask

A mask for periodic events.

Deprecated
NSScrollWheelMask

A mask for scroll-wheel events.

Deprecated
NSTabletPointMask

A mask for tablet-point events.

Deprecated
NSTabletProximityMask

A mask for tablet-proximity events.

Deprecated
NSAnyEventMask

A mask that matches any type of event.

Deprecated

See Also

Getting the Event Type

type

The event’s type.

NSEventType

The types of events handled by responder objects.

subtype

The event’s subtype.

NSEventSubtype

Subtypes for various types of events.

modifierFlags

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