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

# NSPreferencePaneCancelUnselect

Notifies observers that the preference pane should not be deselected.

## Declaration

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

## Discussion

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

## See Also

### PreferencePanes

- [NSPreferencePaneDoUnselect](foundation/nsnotification/name-swift.struct/nspreferencepanedounselect.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)
