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?) -> NSPointParameters
- point:
A point specifying a location in the coordinate system of
view. - view:
The view with
pointin its coordinate system. Bothviewand the view must belong to the same Nswindow object, and that window must not benil. Ifviewisnil, 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
backingAlignedRect(_:options:)convertFromBacking(_:)convertToBacking(_:)convertFromLayer(_:)convertToLayer(_:)convertFromBacking(_:)convertToBacking(_:)convertFromLayer(_:)convertToLayer(_:)convertFromBacking(_:)convertToBacking(_:)convertFromLayer(_:)convertToLayer(_:)convert(_:to:)convert(_:from:)