---
title: "setCurrentAppleEventAndReplyEventWithSuspensionID(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsappleeventmanager/setcurrentappleeventandreplyeventwithsuspensionid(_:)"
---

# setCurrentAppleEventAndReplyEventWithSuspensionID(_:)

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

## Declaration

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

## Discussion

Discussion Redundant invocations of setCurrentAppleEventAndReplyEventWithSuspensionID(_:) are ignored.

## See Also

### Suspending and resuming Apple events

- [appleEvent(forSuspensionID:)](foundation/nsappleeventmanager/appleevent(forsuspensionid:).md)
- [currentAppleEvent](foundation/nsappleeventmanager/currentappleevent.md)
- [currentReplyAppleEvent](foundation/nsappleeventmanager/currentreplyappleevent.md)
- [replyAppleEvent(forSuspensionID:)](foundation/nsappleeventmanager/replyappleevent(forsuspensionid:).md)
- [resume(withSuspensionID:)](foundation/nsappleeventmanager/resume(withsuspensionid:).md)
- [suspendCurrentAppleEvent()](foundation/nsappleeventmanager/suspendcurrentappleevent().md)
- [NSAppleEventManager.SuspensionID](foundation/nsappleeventmanager/suspensionid.md)
