---
title: didSelect()
framework: preferencepanes
role: symbol
role_heading: Instance Method
path: preferencepanes/nspreferencepane/didselect()
---

# didSelect()

Notifies the preference pane that the main app has just displayed the preference pane’s main view.

## Declaration

```swift
func didSelect()
```

## Discussion

Discussion Default implementation does nothing. Override this method to perform actions right after the main view has been placed into a window on the screen.

## See Also

### Selecting and Deselecting the Preference Pane

- [willSelect()](preferencepanes/nspreferencepane/willselect().md)
- [willUnselect()](preferencepanes/nspreferencepane/willunselect().md)
- [didUnselect()](preferencepanes/nspreferencepane/didunselect().md)
- [isSelected](preferencepanes/nspreferencepane/isselected.md)
- [shouldUnselect](preferencepanes/nspreferencepane/shouldunselect.md)
- [NSPreferencePaneUnselectReply](preferencepanes/nspreferencepaneunselectreply.md)
- [reply(toShouldUnselect:)](preferencepanes/nspreferencepane/reply(toshouldunselect:).md)
