05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

You can’t do much in Xcode without<br />

a project. From the Project Assistant<br />

window, create a new Cocoa documentbased<br />

application named Hello World.<br />

You will be prompted to give the project<br />

a name and a location, as shown in<br />

Figure 25-6. I’ve created a ~/Projects<br />

folder in my home folder, adjacent my<br />

~/Documents folder. I like to subdivide my<br />

Projects folder into general categories,<br />

but you can adapt this exercise to your<br />

own work style.<br />

Xcode’s project window is split vertically<br />

into two views. On the left is the<br />

Groups & Files sidebar, which organizes<br />

your project in a logical, hierarchical<br />

way. On the right is a details view that<br />

gives you more information on whatever<br />

is selected in the sidebar. While it’s<br />

not immediately obvious at first, the right pane is actually further split horizontally. Centered at<br />

the bottom of the view is a small dot. Grabbing the dot with your cursor and dragging reveals<br />

the editor view, as shown in Figure 25-7. You can also reveal the editor by selecting a source code<br />

file in the sidebar, or by clicking the editor toolbar item.<br />

Figure 25-7. Xcode’s project window, with the editor pane revealed<br />

CHAPTER 25 MAC <strong>OS</strong> X DEVELOPMENT: THE TOOLS 455<br />

Figure 25-6. Creating a project in Xcode’s Project<br />

Assistant window<br />

Your new project already has a lot of content in its sidebar. These are Xcode’s smart groups.<br />

Like iTunes, some of these are functional and built-in, while others simply serve to demonstrate<br />

the kinds of smart groups you can create yourself. Any of the preset smart groups can be toggled<br />

by right- or Cmd+clicking the sidebar to bring up its contextual menu, and then selecting<br />

Preferences.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!