---
title: suspendCurrentAppleEvent()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsappleeventmanager/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.

## Declaration

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

## Discussion

Discussion An Apple event is being handled on the current thread if currentAppleEvent does not return nil. Returns zero otherwise. The suspended event is no longer the current event after this method returns.

## 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)
- [setCurrentAppleEventAndReplyEventWithSuspensionID(_:)](foundation/nsappleeventmanager/setcurrentappleeventandreplyeventwithsuspensionid(_:).md)
- [NSAppleEventManager.SuspensionID](foundation/nsappleeventmanager/suspensionid.md)
