Contents

cascadeTopLeft(from:)

Positions the window’s top-left to a given point.

Declaration

func cascadeTopLeft(from topLeftPoint: NSPoint) -> NSPoint

Parameters

  • topLeftPoint:

    The new top-left point, in screen coordinates, for the window. When Nszeropoint, the window is not moved, except as needed to constrain to the visible screen

Return Value

The point shifted from top left of the window in screen coordinates.

Discussion

The returned point can be passed to a subsequent invocation of cascadeTopLeft(from:) to position the next window so the title bars of both windows are fully visible.

See Also

Sizing Windows