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