move(to:)
Moves the path’s current point to the specified location.
Declaration
func move(to point: NSPoint)Parameters
- point:
A point in the current coordinate system.
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.