---
title: "windowWillMove(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindowdelegate/windowwillmove(_:)"
---

# windowWillMove(_:)

Tells the delegate that the window is about to move.

## Declaration

```swift
@MainActor optional func windowWillMove(_ notification: Notification)
```

## Parameters

- `notification`: A notification named doc://com.apple.appkit/documentation/AppKit/NSWindow/willMoveNotification.

## Discussion

Discussion You can retrieve the NSWindow object in question by sending object to notification.

## See Also

### Moving Windows

- [windowDidMove(_:)](appkit/nswindowdelegate/windowdidmove(_:).md)
- [windowDidChangeScreen(_:)](appkit/nswindowdelegate/windowdidchangescreen(_:).md)
- [windowDidChangeScreenProfile(_:)](appkit/nswindowdelegate/windowdidchangescreenprofile(_:).md)
- [windowDidChangeBackingProperties(_:)](appkit/nswindowdelegate/windowdidchangebackingproperties(_:).md)
