---
title: "setDefaultPlaceholder(_:for:with:)"
framework: objectivec
role: symbol
role_heading: Type Method
path: "objectivec/nsobject-swift.class/setdefaultplaceholder(_:for:with:)"
---

# setDefaultPlaceholder(_:for:with:)

Sets placeholder as the default placeholder for the binding, when a key value coding compliant property of an instance of the receiving class returns the value specified by marker, and no other placeholder has been specified.

## Declaration

```swift
class func setDefaultPlaceholder(_ placeholder: Any?, for marker: Any?, with binding: NSBindingName)
```

## Discussion

Discussion The marker can be nil or one of the constants described in Selection Markers.

## See Also

### Related Documentation

- [Cocoa Bindings Programming Topics](apple-archive/documentation/Cocoa/Conceptual/CocoaBindings.md)

### Deprecated Class Methods

- [defaultPlaceholder(for:with:)](objectivec/nsobject-swift.class/defaultplaceholder(for:with:).md)
- [useStoredAccessor()](objectivec/nsobject-swift.class/usestoredaccessor().md)
