<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PreferencePanes",
  "identifier" : "/documentation/PreferencePanes/NSPreferencePane/reply(toShouldUnselect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Preference Panes"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPreferencePane(im)replyToShouldUnselect:"
  },
  "title" : "reply(toShouldUnselect:)"
}
-->

# reply(toShouldUnselect:)

Notifies the main application of the preference pane’s ability to be deselected.

```
func reply(toShouldUnselect shouldUnselect: Bool)
```

## Discussion

If you override [`shouldUnselect`](/documentation/PreferencePanes/NSPreferencePane/shouldUnselect) to return [`NSPreferencePaneUnselectReply.unselectLater`](/documentation/PreferencePanes/NSPreferencePaneUnselectReply/unselectLater), you must invoke [`reply(toShouldUnselect:)`](/documentation/PreferencePanes/NSPreferencePane/reply(toShouldUnselect:)) when you have determined whether or not the preference pane can be deselected.

You should not override this method.

---

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)