<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSNotification/Name-swift.struct/NSPreferencePaneDoUnselect",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSPreferencePaneDoUnselectNotification"
  },
  "title" : "NSPreferencePaneDoUnselect"
}
-->

# NSPreferencePaneDoUnselect

Notifies observers that the preference pane may be deselected.

```
static let NSPreferencePaneDoUnselect: NSNotification.Name
```

## Discussion

Posted when <doc://com.apple.documentation/documentation/PreferencePanes/NSPreferencePane/reply(toShouldUnselect:)> is invoked with an argument of <doc://com.apple.documentation/documentation/Swift/true> after <doc://com.apple.documentation/documentation/PreferencePanes/NSPreferencePane/shouldUnselect> has returned a value of <doc://com.apple.documentation/documentation/PreferencePanes/NSPreferencePaneUnselectReply/unselectLater>.

---

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)