---
title: placeholderAttributedString
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspathcell/placeholderattributedstring
---

# placeholderAttributedString

Sets the value of the placeholder attributed string.

## Declaration

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

## Parameters

- `string`: The string to set for the placeholder attributed string.

## Discussion

Discussion If the NSPathCell object contains no NSPathComponentCell objects, the placeholder attributed string is drawn in their place, if it is not nil. If the placeholder attributed string is nil, the (non-attributed) placeholder string is drawn with default attributes, if it is not nil.

## See Also

### Setting Cell Appearance

- [placeholderString](appkit/nspathcell/placeholderstring.md)
- [backgroundColor](appkit/nspathcell/backgroundcolor.md)
