Chapter 11. Using Xcode

 

This chapter covers

Now that you’ve learned a bit about the puzzle pieces needed to build an SDK program, you’re ready to start programming. The main purpose of this chapter is to show you how Xcode, the SDK’s main development environment, works. Via a traditional Hello, World! program, we’ll look at the parts of a standard SDK program. We’ll also examine how to create new classes of objects, and with that under our belt, we’ll finish up by looking at some of Xcode’s most interesting features.

11.1. Introducing Xcode

Apple programming begins with Xcode, an integrated development environment (IDE) that you can call up from the Developer directory. To write iPhone programs, you must have downloaded the iPhone SDK, as discussed in the previous chapter. Once you’ve done that, choosing File > New Project will get you started. You’ll immediately be asked to select a template for your new project.

The template you choose will fill your project with default frameworks, default files, default objects, and even default code. As you’ll see, it’ll be a great help in jump-starting your own coding. For your first program, we want to go with the simplest template we can find: Window-Based Application.

11.2. Creating a first project in Xcode: Hello, World!

11.3. Creating a new class in Xcode

11.4. Other Xcode functionality

11.5. Summary

sitemap