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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access