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

# windowDidChangeScreenProfile(_:)

Tells the delegate that the window has changed screen display profiles.

## Declaration

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

## Parameters

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

## Discussion

Discussion You can retrieve the NSWindow object in question by sending object to notification. If your app runs in macOS 10.7.3 or later, you should instead watch for the notification NSWindowDidChangeBackingPropertiesNotification.

## See Also

### Moving Windows

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