---
title: "infoForBinding(_:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/infoforbinding(_:)"
---

# infoForBinding(_:)

Returns a dictionary describing the receiver’s binding.

## Declaration

```swift
func infoForBinding(_ binding: NSBindingName) -> [NSBindingInfoKey : Any]?
```

## Parameters

- `binding`: The name of a binding.

## Return Value

Return Value A dictionary with information about binding, or nil if the binding is not bound. The dictionary contains three key/value pairs: NSObservedObjectKey: object bound, NSObservedKeyPathKey: key path bound, NSOptionsKey: dictionary with the options and their values for the bindings.

## Discussion

Discussion This method is mostly for use by subclasses which want to analyze the existing bindings of an object.

## See Also

### Managing bindings

- [valueClassForBinding(_:)](objectivec/nsobject-swift.class/valueclassforbinding(_:).md)
- [bind(_:to:withKeyPath:options:)](objectivec/nsobject-swift.class/bind(_:to:withkeypath:options:).md)
- [optionDescriptionsForBinding(_:)](objectivec/nsobject-swift.class/optiondescriptionsforbinding(_:).md)
- [NSBindingInfoKey](appkit/nsbindinginfokey.md)
- [unbind(_:)](objectivec/nsobject-swift.class/unbind(_:).md)
- [NSIsControllerMarker(_:)](appkit/nsiscontrollermarker(_:).md)
