Appendix B. Project Templates

Xcode includes numerous project templates. Choosing the right template when you're creating a new project can go a long way in getting your project going in the right direction.

Both the new project assistant and the Xcode documentation include short descriptions of each template—too short, in my opinion. For example, the CoreFoundation Tool template is described as "A tool that links against the Core Foundation library." That's all well and good if you know what the Core Foundation library is or how it differs from the Core Services library and the Foundation framework. While the descriptions of the templates in this appendix are brief, you should find them substantially more enlightening than the descriptions found in the new project assistant.

If you have jumped here from Chapter 4, some of the terminology and concepts described here, like External Targets and NIB files, might not make sense yet. Don't worry. You can fix your project later if you make a less-than-optimal choice to begin with. And don't be afraid to just start a new project and import the work you've already done from a previous project. This can often be much more expedient than trying to fix a project that needs significant reorganization.

The templates here are those found in Xcode version 2.2. However, the Xcode team at Apple never rests. Don't be surprised to find new or improved templates in the version of Xcode that you are using.

Empty Projects

Listed in the following table are ...

Get Beginning Xcode® 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.