---
title: "appleEvent(forSuspensionID:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsappleeventmanager/appleevent(forsuspensionid:)"
---

# appleEvent(forSuspensionID:)

Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent(), returns the descriptor for the event whose handling was suspended.

## Declaration

```swift
func appleEvent(forSuspensionID suspensionID: NSAppleEventManager.SuspensionID) -> NSAppleEventDescriptor
```

## Discussion

Discussion The effects of mutating or retaining the returned descriptor are undefined, although it may be copied. appleEvent(forSuspensionID:) may be invoked in any thread, not just the one in which the corresponding invocation of suspendCurrentAppleEvent() occurred.

## See Also

### Suspending and resuming Apple events

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