<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/didChangeScreenProfileNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSWindowDidChangeScreenProfileNotification"
  },
  "title" : "didChangeScreenProfileNotification"
}
-->

# didChangeScreenProfileNotification

A notification that the screen containing the window changed.

```
class let didChangeScreenProfileNotification: NSNotification.Name
```

## Discussion

NSWindow sends this notification only if the value of [`displaysWhenScreenProfileChanges`](/documentation/AppKit/NSWindow/displaysWhenScreenProfileChanges) is <doc://com.apple.documentation/documentation/Swift/true>, and in the following situations:

- When most of the window moves to a screen whose profile is different from the previous screen
- When the ColorSync profile for the current screen changes

The notification object is the `NSWindow` object whose profile changed. This notification doesn’t contain a `userInfo` dictionary.

To observe this notification using Swift concurrency, use [`NSWindow.DidChangeScreenProfileMessage`](/documentation/AppKit/NSWindow/DidChangeScreenProfileMessage).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)