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.
Get Learning the iOS 4 SDK for JavaScript Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.