Information Technology Reference
In-Depth Information
CAUTION
You can add iOS templates to OS X projects, and vice versa. For example, Xcode 4 allows you to add an OS X
menu to an iOS application. The menu doesn't do anything because it isn't referenced by the code, but it's in-
cluded—as a waste of space—in the app bundle. When you add new items, be careful to have the correct OS se-
lected.
Adding new resources
Although it's often useful to add new windows and views to a project, the templates make this unnecessarily
complex. It would be useful to add nibs and supporting source code in a single step, but the templates don't
support this. Instead, you must add a suitable nib from a list of resource files and then add supporting classes
manually.
The one exception to this is the UIViewController subclass template for iOS, which creates source code
files and an associated nib. For other tasks, you must add and edit the nib files by hand, add supporting class
files separately, and then reclass the nibs so they're linked to the source code. For more details, see Chapters 7
and 8. Table 5.2 lists the nib files that are available.
Search WWH ::




Custom Search