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

# mouseLocation

Reports the current mouse position in screen coordinates.

```
class var mouseLocation: NSPoint { get }
```

## Return Value

The current mouse location in screen coordinates.

## Discussion

This method is similar to the [`mouseLocationOutsideOfEventStream`](/documentation/AppKit/NSWindow/mouseLocationOutsideOfEventStream) method of [`NSWindow`](/documentation/AppKit/NSWindow). It returns the location regardless of the current event or pending events. The difference between these methods is that [`mouseLocationOutsideOfEventStream`](/documentation/AppKit/NSWindow/mouseLocationOutsideOfEventStream) returns a point in the receiving window’s coordinates, and [`mouseLocation`](/documentation/AppKit/NSEvent/mouseLocation) returns the same information in screen coordinates.

---

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)