optionDescriptionsForBinding(_:)
Returns an array describing the options for the specified binding.
Declaration
func optionDescriptionsForBinding(_ binding: NSBindingName) -> [NSAttributeDescription]Parameters
- binding:
The name of a binding
Return Value
Returns an array of NSAttributeDescription that describe the options for binding.
Discussion
The 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 NSAttributeDescription method name.
The type of editor displayed for the option in the bindings inspector is based on the value of the NSAttributeDescription method attributeType.
The default value displayed in the bindings inspector for the option is based on the value of the NSAttributeDescription method defaultValue.