05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

466<br />

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

Most application projects will require visiting Interface Builder at least once, if not several<br />

times. Anything that can be done within Interface Builder probably should be, since it will save a<br />

lot of code.<br />

Still, as much as Interface Builder can do, chances are good you’re still going to have to<br />

write some code. Let’s close our interface and check out Xcode’s editing and debugging features.<br />

Programming in Xcode<br />

In Chapter 24, we talked a lot about abstraction and how it protects developers from changes to<br />

the underlying system. Xcode is a big part of that abstraction. By getting as many programmers<br />

on Xcode as possible, Apple has been able to introduce things like universal binaries while minimizing<br />

extra work for developers. This, even more than the general persnickety nature of<br />

professional programmers, explains why Xcode is so configurable.<br />

Since writing code is a form of word processing, many programmers become very comfortable<br />

with their editor of choice. As such, Xcode allows you to emulate the color schemes and key<br />

bindings of other editors, or to use other editors altogether. All that being said, Xcode includes a<br />

very usable editor. Xcode 3 introduces several niceties that make using Xcode’s built-in editor all<br />

the more compelling.<br />

The Editor<br />

Xcode’s editor can be invoked by selecting source code in the sidebar, and then adjusting the split<br />

pane. Double-clicking the source code will launch a new editor in its own window. Clicking the<br />

editor icon in the toolbar will open the currently selected source code within the main view itself,<br />

filling the entire right side, as shown in Figure 25-15.<br />

Figure 25-15. Xcode’s built-in editor<br />

Xcode’s editor is designed to give you as much information as possible, without getting in<br />

the way of the task at hand. It accomplishes this by several different means, which we’ll describe<br />

in the following sections.

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

Saved successfully!

Ooh no, something went wrong!