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

The types of events handled by responder objects.

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.