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

# placeholderAttributedString

The placeholder text for the cell, specified as an attributed string.

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

## Discussion

Assigning a new value to this property also clears out any value set for the [`placeholderString`](/documentation/AppKit/NSTextFieldCell/placeholderString) property.

---

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)