<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplication/ModalSession",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSModalSession"
  },
  "title" : "NSApplication.ModalSession"
}
-->

# NSApplication.ModalSession

Variables of type `NSModalSession` point to information used by the system between `NSApplication`’s [`beginModalSession(for:)`](/documentation/AppKit/NSApplication/beginModalSession(for:)) and [`endModalSession(_:)`](/documentation/AppKit/NSApplication/endModalSession(_:)) messages.

```
typealias ModalSession = OpaquePointer
```

---

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)