---
title: mouseLocation
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsevent/mouselocation
---

# mouseLocation

Reports the current mouse position in screen coordinates.

## Declaration

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

## Return Value

Return Value The current mouse location in screen coordinates.

## Discussion

Discussion This method is similar to the mouseLocationOutsideOfEventStream method of NSWindow. It returns the location regardless of the current event or pending events. The difference between these methods is that mouseLocationOutsideOfEventStream returns a point in the receiving window’s coordinates, and mouseLocation returns the same information in screen coordinates.

## See Also

### Getting mouse event information

- [pressedMouseButtons](appkit/nsevent/pressedmousebuttons.md)
- [doubleClickInterval](appkit/nsevent/doubleclickinterval.md)
- [buttonNumber](appkit/nsevent/buttonnumber.md)
- [clickCount](appkit/nsevent/clickcount.md)
- [associatedEventsMask](appkit/nsevent/associatedeventsmask.md)
