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

# didResignActiveNotification

Posted immediately after the app gives up its active status to another app.

```
class let didResignActiveNotification: NSNotification.Name
```

## Discussion

The notification object is `NSApp`. This notification doesn’t contain a `userInfo` dictionary.  The system posts this notification on the main actor.

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

---

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)