Contents

infoForBinding(_:)

Returns a dictionary describing the receiver’s binding.

Declaration

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

Parameters

  • binding:

    The name of a binding.

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

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

See Also

Managing bindings