Enumeration

NSEventMask

Constants that are masks for the events defined in NSEventType.

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

NSEventMaskGesture

Corresponds to NSEventTypeGesture.

NSEventMaskMagnify

Corresponds to NSEventTypeMagnify.

NSEventMaskSwipe

Corresponds to NSEventTypeSwipe.

NSEventMaskRotate

Corresponds to NSEventTypeRotate.

NSEventMaskBeginGesture

Corresponds to NSEventTypeBeginGesture.

NSEventMaskEndGesture

Corresponds to NSEventTypeEndGesture.

NSEventMaskSmartMagnify

An event type for the smart zoom gesture (two-finger double tap on trackpads) along with a corresponding NSResponder method. In response to this event, you should magnify the content appropriately for your app. For example, you might zoom in on a specific paragraph or image.

NSEventMaskPressure

An NSEvent type representing a change in pressure on a pressure-sensitive device. Requires a 64-bit processor.

NSEventMaskDirectTouch

An event mask for touch events, for use with NSTouchBar objects. Corresponds to the NSEventTypeDirectTouch constant.

Deprecated Types

NSLeftMouseDownMask

Corresponds to NSLeftMouseDown. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSLeftMouseUpMask

Corresponds to NSLeftMouseUp. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSRightMouseDownMask

Corresponds to NSRightMouseDown. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSRightMouseUpMask

Corresponds to NSRightMouseUp. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSOtherMouseDownMask

Corresponds to NSOtherMouseDown. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSOtherMouseUpMask

Corresponds to NSOtherMouseUp. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSMouseMovedMask

Corresponds to NSMouseMoved. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSLeftMouseDraggedMask

Corresponds to NSLeftMouseDragged. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSRightMouseDraggedMask

Corresponds to NSRightMouseDragged. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSOtherMouseDraggedMask

Corresponds to NSOtherMouseDragged. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSKeyDownMask

Corresponds to NSKeyDown. See Handling Key Events in Cocoa Event Handling Guide.

Deprecated
NSKeyUpMask

Corresponds to NSKeyUp. See Handling Key Events in Cocoa Event Handling Guide.

Deprecated
NSFlagsChangedMask

Corresponds to NSFlagsChanged. See Handling Key Events in Cocoa Event Handling Guide.

Deprecated
NSAppKitDefinedMask

Corresponds to NSAppKitDefined. See Event Objects and Types in Cocoa Event Handling Guide.

Deprecated
NSSystemDefinedMask

Corresponds to NSSystemDefined. See Event Objects and Types in Cocoa Event Handling Guide.

Deprecated
NSApplicationDefinedMask

Corresponds to NSApplicationDefined. See Event Objects and Types in Cocoa Event Handling Guide.

Deprecated
NSPeriodicMask

Corresponds to NSPeriodic. See Event Objects and Types in Cocoa Event Handling Guide.

Deprecated
NSScrollWheelMask

Corresponds to NSScrollWheel. See Handling Mouse Events in Cocoa Event Handling Guide.

Deprecated
NSTabletPointMask

Corresponds to NSTabletPoint.

Deprecated
NSTabletProximityMask

Corresponds to NSTabletProximity.

Deprecated
NSAnyEventMaskDeprecated

Type Properties

See Also

Getting the Event Type

type

The event’s type.

NSEventType

Various types of events.

subtype

The event’s subtype.

NSEventSubtype

Subtypes for various types of events.

modifierFlags

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