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

# optionDescriptionsForBinding(_:)

Returns an array describing the options for the specified binding.

```
func optionDescriptionsForBinding(_ binding: NSBindingName) -> [NSAttributeDescription]
```

## Parameters

`binding`

The name of a binding

## Return Value

Returns an array of <doc://com.apple.documentation/documentation/CoreData/NSAttributeDescription> that describe the options for `binding`.

## Discussion

The <doc://com.apple.documentation/documentation/CoreData/NSAttributeDescription> instances in the array are used by Interface Builder to build the options editor user interface of the bindings inspector.

- The option name displayed for the option in the bindings inspector is based on the value of the <doc://com.apple.documentation/documentation/CoreData/NSAttributeDescription> method <doc://com.apple.documentation/documentation/CoreData/NSPropertyDescription/name>.
- The type of editor displayed for the option in the bindings inspector is based on the value of the  <doc://com.apple.documentation/documentation/CoreData/NSAttributeDescription> method <doc://com.apple.documentation/documentation/CoreData/NSAttributeDescription/attributeType-swift.property>.
- The default value displayed in the bindings inspector for the option is based on the value of the <doc://com.apple.documentation/documentation/CoreData/NSAttributeDescription> method <doc://com.apple.documentation/documentation/CoreData/NSAttributeDescription/defaultValue>.

---

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)