---
title: defaultButtonCell
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/defaultbuttoncell
---

# defaultButtonCell

The button cell that performs as if clicked when the window receives a Return (or Enter) key event.

## Declaration

```swift
var defaultButtonCell: NSButtonCell? { get set }
```

## Discussion

Discussion This cell draws itself as the focal element for keyboard interface control, unless another button cell is focused on, in which case the default button cell temporarily draws itself as normal and disables its key equivalent. The window receives a Return key event if no responder in its responder chain claims it, or if the user presses the Control key along with the Return key.

## See Also

### Managing Default Buttons

- [enableKeyEquivalentForDefaultButtonCell()](appkit/nswindow/enablekeyequivalentfordefaultbuttoncell().md)
- [disableKeyEquivalentForDefaultButtonCell()](appkit/nswindow/disablekeyequivalentfordefaultbuttoncell().md)
