<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSApplication/currentEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSApplication(py)currentEvent"
  },
  "title" : "currentEvent"
}
-->

# currentEvent

The last event object that the app retrieved from the event queue.

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

## Discussion

The shared app object receives events and forwards them to the affected [`NSWindow`](/documentation/AppKit/NSWindow) objects, which then distribute them to the objects in its view hierarchy. Use this property to get the event that was last handled by the app.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)