O'Reilly logo

Objective-C Programming: The Big Nerd Ranch Guide by Mikey Ward, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making connections

Creating and configuring views is not all that you can do in Interface Builder. You can also connect the view objects in your XIB file to your application’s code. In particular, you can set target-action pairs and assign pointers.

File’s Owner

In BNRDocument.xib, find the Placeholders heading in the document outline. A placeholder stands in for a particular object that cannot be specified until runtime.

One of these placeholders is File's Owner. File's Owner stands in for the object that will load the XIB file as its user interface. In your case, it represents the instance of BNRDocument.

Setting the button’s target-action pair

Recall from the object diagram at the beginning of the chapter (Figure 32.2 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required