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

# windowDidChangeScreen(_:)

Tells the delegate that the window has changed screens.

## Declaration

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

## Parameters

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

## Discussion

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

## See Also

### Moving Windows

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