Contents

convert(_:to:)

Converts a point from the view’s coordinate system to that of a given view.

Declaration

func convert(_ point: NSPoint, to view: NSView?) -> NSPoint

Parameters

  • point:

    A point specifying a location in the coordinate system of the view.

  • view:

    The view into whose coordinate system point is to be converted. Both view and the view must belong to the same Nswindow object, and that window must not be nil. If view is nil, this method converts to window coordinates instead.

Return Value

The point converted to the coordinate system of aView.

See Also

Related Documentation

Converting Coordinate Values