To enable your code to send messages to a user interface object, create a connection from the user interface object to an outlet in your code. The easiest way is to control-drag from the object in Interface Builder to the implementation file in the assistant editor.
Apple has an excellent article with screenshots here: Creating an Outlet Connection