<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSNotificationPostToAllSessions",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSNotificationPostToAllSessions"
  },
  "title" : "NSNotificationPostToAllSessions"
}
-->

# NSNotificationPostToAllSessions

When set, the notification is posted to all sessions. When not set, the notification is sent only to applications within the same login session as the posting task.

```
var NSNotificationPostToAllSessions: DistributedNotificationCenter.Options { get }
```

---

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)