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

# attributedTitle

The title that the button displays in an off state, as an attributed string.

```
@NSCopying var attributedTitle: NSAttributedString { get set }
```

## Discussion

This property contains an string of class `NSAttributedString`, which appears on the button when the button is in an off state. If the button doesn’t display a title, then this property contains an empty attributed string.

A button’s title is always displayed if the button doesn’t use its alternate contents for highlighting or displaying the on state. By default, a button’s title is Button.

---

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)