<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEvent/EventSubtype",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSEventSubtype"
  },
  "title" : "NSEvent.EventSubtype"
}
-->

# NSEvent.EventSubtype

Subtypes for various types of events.

```
enum EventSubtype
```

## Overview

The event subtype contains one of these constants only when the event’s [`type`](/documentation/AppKit/NSEvent/type) property contains [`NSAppKitDefined`](/documentation/AppKit/NSAppKitDefined), [`NSSystemDefined`](/documentation/AppKit/NSSystemDefined), or [`NSApplicationDefined`](/documentation/AppKit/NSApplicationDefined) or a mouse-related event type.

## Topics

### Getting AppKit Event Subtypes

These subtypes apply when the event type is [`NSEvent.EventType.appKitDefined`](/documentation/AppKit/NSEvent/EventType/appKitDefined)

An AppKit-related event occurred..

[`NSEvent.EventSubtype.applicationActivated`](/documentation/AppKit/NSEvent/EventSubtype/applicationActivated)

An app-activation event occurred.

[`NSEvent.EventSubtype.applicationDeactivated`](/documentation/AppKit/NSEvent/EventSubtype/applicationDeactivated)

An app-deactivation event occurred.

[`NSEvent.EventSubtype.screenChanged`](/documentation/AppKit/NSEvent/EventSubtype/screenChanged)

An event that indicates a window changed screens.

[`NSEvent.EventSubtype.windowExposed`](/documentation/AppKit/NSEvent/EventSubtype/windowExposed)

An event that indicates a window’s contents are visible again.

[`NSEvent.EventSubtype.windowMoved`](/documentation/AppKit/NSEvent/EventSubtype/windowMoved)

An event that indicates a window moved.

### Getting System Event Subtypes

This subtype applies when the event type is [`NSEvent.EventType.systemDefined`](/documentation/AppKit/NSEvent/EventType/systemDefined)

A system-related event occurred..

[`powerOff`](/documentation/AppKit/NSEvent/EventSubtype/powerOff)

An event that indicates a system shutdown or restart operation is in progress.

[`powerOff`](/documentation/AppKit/NSEvent/EventSubtype/powerOff)

An event that indicates a system shutdown or restart operation is in progress.

### Getting Other Subtypes

[`mouseEvent`](/documentation/AppKit/NSEvent/EventSubtype/mouseEvent)

A mouse event occurred.

[`tabletPoint`](/documentation/AppKit/NSEvent/EventSubtype/tabletPoint)

A tablet-pointer event occurred.

[`tabletProximity`](/documentation/AppKit/NSEvent/EventSubtype/tabletProximity)

A tablet-proximity event occurred.

[`NSEvent.EventSubtype.touch`](/documentation/AppKit/NSEvent/EventSubtype/touch)

A touch event occurred.

### Deprecated

[`NSAWTEventType`](/documentation/AppKit/NSAWTEventType)

An event type used to support Java applications.

[`NSApplicationActivatedEventType`](/documentation/AppKit/NSApplicationActivatedEventType)

The application has been activated.

[`NSApplicationDeactivatedEventType`](/documentation/AppKit/NSApplicationDeactivatedEventType)

The application has been deactivated.

[`NSMouseEventSubtype`](/documentation/AppKit/NSMouseEventSubtype)

Indicates a purely mouse event.

[`NSPowerOffEventType`](/documentation/AppKit/NSPowerOffEventType)

Specifies that the user is turning off the computer.

[`NSScreenChangedEventType`](/documentation/AppKit/NSScreenChangedEventType)

An NSWindow has changed screens.

[`NSTabletPointEventSubtype`](/documentation/AppKit/NSTabletPointEventSubtype)

Indicates a tablet-pointer event; see description of `NSTabletPoint`.

[`NSTabletProximityEventSubtype`](/documentation/AppKit/NSTabletProximityEventSubtype)

Indicates a tablet-proximity event; see description of `NSTabletProximity`.

[`NSTouchEventSubtype`](/documentation/AppKit/NSTouchEventSubtype)

Indicates a touch event subtype.

[`NSWindowExposedEventType`](/documentation/AppKit/NSWindowExposedEventType)

A non-retained NSWindow has been exposed.

[`NSWindowMovedEventType`](/documentation/AppKit/NSWindowMovedEventType)

An NSWindow has moved.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)