convert(_:to:)
Converts a rectangle from the view’s coordinate system to that of another view.
Declaration
func convert(_ rect: NSRect, to view: NSView?) -> NSRectParameters
- rect:
A rectangle in the view’s coordinate system.
- view:
The view that’s the target of the conversion operation. Both
viewand the view must belong to the same Nswindow object, and that window must not benil. Ifviewisnil, this method converts the rectangle to window coordinates instead.
Return Value
The converted rectangle.
See Also
Related Documentation
Converting Coordinate Values
backingAlignedRect(_:options:)convertFromBacking(_:)convertToBacking(_:)convertFromLayer(_:)convertToLayer(_:)convertFromBacking(_:)convertToBacking(_:)convertFromLayer(_:)convertToLayer(_:)convertFromBacking(_:)convertToBacking(_:)convertFromLayer(_:)convertToLayer(_:)convert(_:from:)convert(_:to:)