---
title: "move(to:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbezierpath/move(to:)"
---

# move(to:)

Moves the path’s current point to the specified location.

## Declaration

```swift
func move(to point: NSPoint)
```

## Parameters

- `point`: A point in the current coordinate system.

## Discussion

Discussion This method implicitly closes the current subpath (if any) and sets the current point to the value in aPoint. When closing the previous subpath, this method does not cause a line to be created from the first and last points in the subpath. For many path operations, you must invoke this method before issuing any commands that cause a line or curve segment to be drawn.

## See Also

### Constructing a Path

- [line(to:)](appkit/nsbezierpath/line(to:).md)
- [curve(to:controlPoint1:controlPoint2:)](appkit/nsbezierpath/curve(to:controlpoint1:controlpoint2:).md)
- [curve(to:controlPoint:)](appkit/nsbezierpath/curve(to:controlpoint:).md)
- [close()](appkit/nsbezierpath/close().md)
- [relativeMove(to:)](appkit/nsbezierpath/relativemove(to:).md)
- [relativeLine(to:)](appkit/nsbezierpath/relativeline(to:).md)
- [relativeCurve(to:controlPoint1:controlPoint2:)](appkit/nsbezierpath/relativecurve(to:controlpoint1:controlpoint2:).md)
- [relativeCurve(to:controlPoint:)](appkit/nsbezierpath/relativecurve(to:controlpoint:).md)
