Establishing a Binding by Control-Dragging
With a nib file open, display the Assistant editor.
In the jump bar of the Assistant editor, choose the header file of the object to which you will make the binding.
Control-drag from a nib object to the symbol in the header file for the new binding.
In the dialog, configure the binding and click Connect.
Bind an object directly to a declaration in a header file.
As you Control-drag from an object to your source code, Interface Builder indicates where a new binding is valid. After you’ve made the connection, Xcode displays a dialog you use to configure the binding. You can use the dialog to configure all aspects of the binding.
Interface Builder uses the Xcode index to determine which key paths are valid, and can also discover what controller it should connect through—you can therefore connect from a user interface element such as a table column to a property in a model class header.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)