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

# suspendCurrentAppleEvent()

Suspends the handling of the current event and returns an ID that must be used to resume the handling of the event if an Apple event is being handled on the current thread.

```
func suspendCurrentAppleEvent() -> NSAppleEventManager.SuspensionID?
```

## Discussion

An Apple event is being handled on the current thread if [`currentAppleEvent`](/documentation/Foundation/NSAppleEventManager/currentAppleEvent) does not return `nil`. Returns zero otherwise. The suspended event is no longer the current event after this method returns.

---

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)