<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAppleEventManager/currentAppleEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAppleEventManager(py)currentAppleEvent"
  },
  "title" : "currentAppleEvent"
}
-->

# currentAppleEvent

Returns the descriptor for `currentAppleEvent` if an Apple event is being handled on the current thread.

```
var currentAppleEvent: NSAppleEventDescriptor? { get }
```

## Discussion

An Apple event is being handled on the current thread if a handler that was registered with [`setEventHandler(_:andSelector:forEventClass:andEventID:)`](/documentation/Foundation/NSAppleEventManager/setEventHandler(_:andSelector:forEventClass:andEventID:)) is being messaged at this instant or [`setCurrentAppleEventAndReplyEventWithSuspensionID(_:)`](/documentation/Foundation/NSAppleEventManager/setCurrentAppleEventAndReplyEventWithSuspensionID(_:)) has just been invoked. Returns `nil` otherwise. The effects of mutating or retaining the returned descriptor are undefined, although it may be copied.

---

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)