Building the User Interface
At this point you have the working Objective-C code for Workbench,
but you haven’t done anything yet to generate the button that appears in
the app or to connect that button to the runMyCode: method. You’ll use the separate Xcode
tool called Interface Builder (or IB) to do that.
Xcode not only generates the basic source code files for you, but it also generates the Interface Builder files you’ll use. Expand the Resources folder in the Groups & Files panel, as shown in Figure 3-8. Two of the files have names ending in the .xib extension. Although pronounced “zib,” you will more commonly hear these files referred to as “nib” files. Previous generations of Interface Builder for Mac OS development created files with the .nib extension, but for the current version of Xcode, Interface Builder generates files with the .xib extension.
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