Instance Property

subtype

The event’s subtype.

Declaration

@property(readonly) NSEventSubtype subtype;

Discussion

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

type

The event’s type.

NSEventType

Various types of events.

NSEventSubtype

Subtypes for various types of events.

modifierFlags

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

NSEventMask

Constants that are masks for the events defined in NSEventType.