---
title: placeholderString
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspathcell/placeholderstring
---

# placeholderString

Returns the placeholder string.

## Declaration

```swift
var placeholderString: String? { get set }
```

## Return Value

Return Value The placeholder 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

- [placeholderAttributedString](appkit/nspathcell/placeholderattributedstring.md)
- [backgroundColor](appkit/nspathcell/backgroundcolor.md)
