---
title: currentAppleEvent
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsappleeventmanager/currentappleevent
---

# currentAppleEvent

Returns the descriptor for currentAppleEvent if an Apple event is being handled on the current thread.

## Declaration

```swift
var currentAppleEvent: NSAppleEventDescriptor? { get }
```

## Discussion

Discussion An Apple event is being handled on the current thread if a handler that was registered with setEventHandler(_:andSelector:forEventClass:andEventID:) is being messaged at this instant or setCurrentAppleEventAndReplyEventWithSuspensionID(_:) has just been invoked. Returns nil otherwise. The effects of mutating or retaining the returned descriptor are undefined, although it may be copied.

## See Also

### Suspending and resuming Apple events

- [appleEvent(forSuspensionID:)](foundation/nsappleeventmanager/appleevent(forsuspensionid:).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)
