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

# setCurrentAppleEventAndReplyEventWithSuspensionID(_:)

Given a nonzero `suspensionID` returned by an invocation of [`suspendCurrentAppleEvent()`](/documentation/Foundation/NSAppleEventManager/suspendCurrentAppleEvent()), sets the values that will be returned by subsequent invocations of [`currentAppleEvent`](/documentation/Foundation/NSAppleEventManager/currentAppleEvent) and [`currentReplyAppleEvent`](/documentation/Foundation/NSAppleEventManager/currentReplyAppleEvent) to be the event whose handling was suspended and its corresponding reply event, respectively.

```
func setCurrentAppleEventAndReplyEventWithSuspensionID(_ suspensionID: NSAppleEventManager.SuspensionID)
```

## Discussion

Redundant invocations of [`setCurrentAppleEventAndReplyEventWithSuspensionID(_:)`](/documentation/Foundation/NSAppleEventManager/setCurrentAppleEventAndReplyEventWithSuspensionID(_:)) are ignored.

---

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)