Datasheet

16
Getting Started
Figure 1.9
You can change the behavior of Assistant to select a specific type of counterpart file, which can include
an object’s superclass as well as its headers and includes. This is useful for newcomers who may not be
aware that Cocoa and other OS X headers are available in Xcode and can be used as a reference.
Working with Interface Builder
IB is now built into Xcode 4. It launches at the same time as Xcode, and you can edit a nib file
simply by selecting it. IB in Xcode 3 had the same poor window management as the main edi-
tor. IB’s windows would often hide behind other windows for no reason.
In Xcode 4, you can use tabs, the navigation bar, and other new editor features to work with
multiple files more efficiently. Linking and symbol editing have also been drastically simplified.
You can drag links directly from a control or object in IB to a code window, as shown in Figure
1.10. Xcode inserts appropriate code for you in both the header file and the implementation. It
also synthesizes outlet variables automatically. For detailed examples of creating links among
outlets, actions, and IB objects, see Chapters 7 and 8.
05_9781118007594-ch01.indd 1605_9781118007594-ch01.indd 16 5/17/11 11:45 AM5/17/11 11:45 AM