---
title: NSPreferencePaneDoUnselect
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsnotification/name-swift.struct/nspreferencepanedounselect
---

# NSPreferencePaneDoUnselect

Notifies observers that the preference pane may be deselected.

## Declaration

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

## Discussion

Discussion Posted when reply(toShouldUnselect:) is invoked with an argument of true after shouldUnselect has returned a value of NSPreferencePaneUnselectReply.unselectLater.

## See Also

### PreferencePanes

- [NSPreferencePaneCancelUnselect](foundation/nsnotification/name-swift.struct/nspreferencepanecancelunselect.md)
- [NSPreferencePaneSwitchToPane](foundation/nsnotification/name-swift.struct/nspreferencepaneswitchtopane.md)
- [NSPreferencePaneUpdateHelpMenu](foundation/nsnotification/name-swift.struct/nspreferencepaneupdatehelpmenu.md)
- [NSPreferencePrefPaneIsAvailable](foundation/nsnotification/name-swift.struct/nspreferenceprefpaneisavailable.md)
