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

# didFinishRestoringWindowsNotification

Posted when the app has finished restoring windows.

```
class let didFinishRestoringWindowsNotification: NSNotification.Name
```

## Discussion

The notification is posted on the main actor when the app is finished restoring windows, that is, when all the completion handlers from [`restoreWindow(withIdentifier:state:completionHandler:)`](/documentation/AppKit/NSWindowRestoration/restoreWindow(withIdentifier:state:completionHandler:)) have been called. This is always posted after [`willFinishLaunchingNotification`](/documentation/AppKit/NSApplication/willFinishLaunchingNotification), but may be posted before or after [`didFinishLaunchingNotification`](/documentation/AppKit/NSApplication/didFinishLaunchingNotification), depending on whether clients copy the completion handlers and invoke them later. If there were no windows to restore, then this notification is still posted at the corresponding point in app launch (between [`willFinishLaunchingNotification`](/documentation/AppKit/NSApplication/willFinishLaunchingNotification) and [`didFinishLaunchingNotification`](/documentation/AppKit/NSApplication/didFinishLaunchingNotification)).

The notification object is [`shared`](/documentation/AppKit/NSApplication/shared). This notification doesn’t contain a `userInfo` dictionary.

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

---

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)