Instance Method インスタンスメソッド

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