---
title: "cascadeTopLeft(from:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/cascadetopleft(from:)"
---

# cascadeTopLeft(from:)

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

## Declaration

```swift
func cascadeTopLeft(from topLeftPoint: NSPoint) -> NSPoint
```

## Parameters

- `topLeftPoint`: The new top-left point, in screen coordinates, for the window. When doc://com.apple.documentation/documentation/Foundation/NSZeroPoint, the window is not moved, except as needed to constrain to the visible screen

## Return Value

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

## Discussion

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

- [frame](appkit/nswindow/frame.md)
- [setFrameOrigin(_:)](appkit/nswindow/setframeorigin(_:).md)
- [setFrameTopLeftPoint(_:)](appkit/nswindow/setframetopleftpoint(_:).md)
- [constrainFrameRect(_:to:)](appkit/nswindow/constrainframerect(_:to:).md)
- [setFrame(_:display:)](appkit/nswindow/setframe(_:display:).md)
- [setFrame(_:display:animate:)](appkit/nswindow/setframe(_:display:animate:).md)
- [animationResizeTime(_:)](appkit/nswindow/animationresizetime(_:).md)
- [aspectRatio](appkit/nswindow/aspectratio.md)
- [minSize](appkit/nswindow/minsize.md)
- [maxSize](appkit/nswindow/maxsize.md)
- [isZoomed](appkit/nswindow/iszoomed.md)
- [performZoom(_:)](appkit/nswindow/performzoom(_:).md)
- [zoom(_:)](appkit/nswindow/zoom(_:).md)
- [resizeFlags](appkit/nswindow/resizeflags.md)
- [resizeIncrements](appkit/nswindow/resizeincrements.md)
