Contents

convert(_:from:)

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

Declaration

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

Parameters

  • point:

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

  • view:

    The view with point in its coordinate system. 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 from window coordinates instead.

Return Value

The point converted to the coordinate system of the view.

See Also

Related Documentation

Converting Coordinate Values