Contents

screenRect(fromView:rect:)

Returns the frame in screen coordinates.

Declaration

static func screenRect(fromView parentView: NSView, rect frame: NSRect) -> NSRect

Discussion

Given a frame in the specified view’s coordinates, it returns the same frame in the screen’s coordinates.

See Also

Getting Screen Coordinates