<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/exposeBinding(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(cm)exposeBinding:"
  },
  "title" : "exposeBinding(_:)"
}
-->

# exposeBinding(_:)

Exposes the specified `binding`, advertising its availability.

```
class func exposeBinding(_ binding: NSBindingName)
```

## Parameters

`binding`

The key path for the property to be exposed.

## Discussion

The bound property will be accessed using key-value-coding compliant methods. This method is typically invoked in the class’s `initialize` implementation.

Bindings exposed using `exposeBinding` will be exposed automatically in [`exposedBindings`](/documentation/ObjectiveC/NSObject-swift.class/exposedBindings) unless that method explicitly filters them out, for example in subclasses.

---

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)