convert(_:from:)
Converts a rectangle from the coordinate system of another view to that of the view.
Declaration
func convert(_ rect: NSRect, from view: NSView?) -> NSRectParameters
- rect:
The rectangle in the
viewcoordinate system. - view:
The view with
rectin 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 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:)