---
title: currentEvent
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/currentevent
---

# currentEvent

The event currently being processed by the application.

## Declaration

```swift
var currentEvent: NSEvent? { get }
```

## Discussion

Discussion The value of this property is given by calling by invoking the NSApplication method currentEvent.

## See Also

### Handling Events

- [nextEvent(matching:)](appkit/nswindow/nextevent(matching:).md)
- [nextEvent(matching:until:inMode:dequeue:)](appkit/nswindow/nextevent(matching:until:inmode:dequeue:).md)
- [discardEvents(matching:before:)](appkit/nswindow/discardevents(matching:before:).md)
- [postEvent(_:atStart:)](appkit/nswindow/postevent(_:atstart:).md)
- [sendEvent(_:)](appkit/nswindow/sendevent(_:).md)
- [tryToPerform(_:with:)](appkit/nswindow/trytoperform(_:with:).md)
