Changing Connections in a Nib File

    Steps
  1. With a nib file open, Control-click an object to open the connections window.

  2. Click the X to the left of the connection name to remove a connection.

  3. Drag from the connection well directly to your source code to add a connection.



image: ../art/Connections.png

Change an object’s connections to other objects in a nib file using the connections panel. After making a connection directly to your source code, you may need to change or remove the connection. The connections window shows you all the connections to and from an object, and makes it possible to change or remove them.

The specific connections listed in the connections window depend on the object you select. Types of connections include Cocoa Touch events, actions, outlets, outlet collections, and bindings. If a connection exists, the circle on the right (called a connection well) is filled in and the name of the connected object is shown.

For actions, Cocoa Touch events, and referencing outlets, you can create a connection by dragging from the connections window directly to your source code. If you’re changing a connection, it’s not necessary to remove the old connection in order to change it.

The video shows changing an action connection.