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

# attributedTitle

The title for the window tab, specified as an attributed string.

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

## Discussion

If you provide an attributed title, the window tab uses all of the attributes that are explicitly provided in the attributed string. Attributes that are left unspecified, including the font and foreground color, are automatically filled in using default values appropriate for the window tab.

If the [`attributedTitle`](/documentation/AppKit/NSWindowTab/attributedTitle) property is nil, the window tab uses the [`title`](/documentation/AppKit/NSWindowTab/title) property instead. The default value is <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0>.

---

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)