<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButtonCell/title",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSButtonCell(py)title"
  },
  "title" : "title"
}
-->

# title

The title displayed on the button when it’s in its normal state.

```
var title: String! { get set }
```

## Discussion

If the button doesn’t display a title, the value of this property is the empty string. This title is always displayed if the button doesn’t use its alternate contents for highlighting or displaying the alternate state. By default, a button’s title is “Button.” Setting this property may redraw the button if necessary.

## See Also

[`font`](/documentation/AppKit/NSCell/font)

The font that the cell uses to display text.

[`-  setTitleWithMnemonic:`](/documentation/AppKit/NSButtonCell/setTitleWithMnemonic:)

Sets the title the button displays when it’s in its normal state to the given string with an embedded mnemonic.

[`-  mnemonicLocation`](/documentation/AppKit/NSCell/mnemonicLocation)

Returns the position of the underlined mnemonic character in the receiver’s title.

[`-  mnemonic`](/documentation/AppKit/NSCell/mnemonic)

Returns the character in the receiver’s title that appears underlined for use as a mnemonic.

[`-  setButtonType:`](/documentation/AppKit/NSButtonCell/setButtonType(_:))

Sets how the button highlights while pressed and how it shows its state.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)