<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/nsplaceholders",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "NSPlaceholders"
}
-->

# NSPlaceholders

A set of methods that an object can implement to register default placeholders to be displayed for a binding, when no other placeholder is specified.

## Discussion

Individual placeholder values can be specified for each of the marker objects (described in [Selection Markers](/documentation/AppKit/selection-markers)), as well as when the property is `nil`.

Placeholders are used when a property of an instance of the receiving class is accessed through a key value coding compliant method, and returns `nil` or a specialized marker.

## Topics

### Managing default placeholders

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/setDefaultPlaceholder(_:for:with:)>

  <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/defaultPlaceholder(for:with:)>

### Constants

[Selection Markers](/documentation/AppKit/selection-markers)

The following constants are used to describe special cases for a controller’s selection.



---

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)