Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Make a New Project

This section will guide you through the process of creating a project. Though it is focused on creating a project suitable for Currency Converter, you will learn about other options available to you when creating a new project.

In this section:

Choose the New Project Command
Choose a Project Type
The Xcode Project Interface


Choose the New Project Command

To create a project, choose File > New Project. The New Project Assistant appears.

Choose a Project Type

Xcode can build many different types of applications, including everything from Carbon and Cocoa applications to Mac OS X kernel extensions and Mac OS X frameworks. For this tutorial, select Cocoa Application and click Next, as shown in Figure 2-2.


Figure 2-2  The New Project Assistant in Xcode

The New Project Assistant in Xcode

  1. Type the project’s name, Currency Converter, in the Project Name field, as shown in Figure 2-3.


    Figure 2-3  Entering the project’s name and location

    Entering the project's name and location
  2. Click Choose to navigate to the directory where you want your project to be stored. The pop-up menu Project Directory eventually fills up with your frequently used directories. Use this to save time in the future.

  3. Click Finish.

  4. When you click Finish, Xcode creates the project’s files and displays the project window, shown in Figure 2-4.


Figure 2-4  The new Currency Converter project in Xcode

The new Currency Converter project in Xcode

The Xcode Project Interface

The Groups & Files list is provided for you to easily navigate through your project’s files and traits. All the source files, images, and other resources that make up a project are grouped in the project group, the first item in the Groups & Files list; this group is named after the project (here, Currency Converter). The project’s files are grouped into subgroups, such as Classes, Other Sources, Resources, and so on, as shown in Figure 2-4. These groups are very flexible in that they do not necessarily reflect either the on-disk layout of the project or the way the build system handles it. They are purely for organizing your project. The groups created by Xcode should be suitable for most developers, but you can rearrange them however you like.

These are the groups Xcode sets up for Cocoa applications:

Below the project group are other groups, including smart groups. Smart groups—identified by the purple folders on the left side of the list—allow you to sort the project’s files using custom rules in a way similar to using smart playlists in iTunes.

These are some of the other groups in the Groups & Files list:

Curious folks might want to look in the project directory in Finder to see the files it contains. Among the project files are:

Currency Converter.xcodeproj

This package contains information that defines the project. You should not modify it directly. You can open your project by double-clicking this package.

main.m

An Objective-C file, generated for each project, that contains the main function of the application.

English.lproj

A directory containing resources localized to the English language. In this directory are nib files automatically created for the project. You may find other localized resource directories, such as Dutch.lproj.



< Previous PageNext Page > Hide TOC


Last updated: 2007-10-31




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice