Contents

shouldUnselect

A Boolean value that indicates whether the preference pane is able to be deselected.

Declaration

var shouldUnselect: NSPreferencePaneUnselectReply { get }

Discussion

The possible values are described in Help Menu Support. The default implementation always returns NSPreferencePaneUnselectReply.unselectNow. Override this method if your pane needs to cancel or delay a deselect action. If you override this method to return NSPreferencePaneUnselectReply.unselectLater, you must invoke reply(toShouldUnselect:) when you have determined whether or not the deselection can occur.

See Also

Selecting and Deselecting the Preference Pane