---
title: sound
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbuttoncell/sound
---

# sound

The sound that’s played when the user presses the button (that is during a mouse-down event).

## Declaration

```swift
var sound: NSSound? { get set }
```
