Instance Property


The event’s subtype.


var subtype: NSEvent.EventSubtype { get }


Raises an NSInternalInconsistencyException if accessed on an event that is not of type NSAppKitDefined, NSSystemDefined, NSApplicationDefined, or NSPeriodic. This property is also valid for mouse events. See Getting Unicode Values for the predefined mouse and tablet subtypes.

NSPeriodic events don’t use this property.

See Also

Getting the Event Type

var type: NSEvent.EventType

The event’s type.

enum NSEvent.EventType

The types of events handled by responder objects.

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 you use to filter out specific event types from the stream of incoming events.