---
title: "location(in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsevent/location(in:)"
---

# location(in:)

Returns the location of the receiver in the coordinate system of the given node.

## Declaration

```swift
func location(in node: SKNode) -> CGPoint
```

## Parameters

- `node`: A node that is a descendant of a scene presented in the window that received the mouse event.

## Return Value

Return Value The location of the event in the node’s coordinate system.
