<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEvent/EventType/changeMode",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSEventType@NSEventTypeChangeMode"
  },
  "title" : "NSEvent.EventType.changeMode"
}
-->

# NSEvent.EventType.changeMode

The user changed the mode of a connected device.

```
case changeMode
```

## Discussion

In macOS 10.15 and later, you can use an iPad as an additional screen for a macOS device. A double-tap on the side of an Apple Pencil paired with that iPad results in this type of event. AppKit calls the [`changeMode(with:)`](/documentation/AppKit/NSResponder/changeMode(with:)) method to route these events to the first responder of the key window of the frontmost process.

The object that needs to handle these types of events may not always be the first responder, or be in the active responder chain. To ensure that the events are handled in the right place, call the [`addLocalMonitorForEvents(matching:handler:)`](/documentation/AppKit/NSEvent/addLocalMonitorForEvents(matching:handler:)) method and handle or redirect the events in your handler block.

---

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)