Writing the RandomPossessions Tool

Before you dive into the UIKit, the set of libraries for creating iOS applications, you’re going to write a command line tool that will let you focus on the Objective-C language. Open Xcode and select FileNewNew Project.... In the lefthand table in the Mac OS X section, click Application and then select Command Line Tool from the upper panel, as shown in Figure 2.3. Click the Next button.

Figure 2.3  Creating a command line tool

Creating a command line tool

On the next panel, name the product RandomPossessions and choose Foundation as its type (Figure 2.4). Click Next, and you will be prompted to save the project. Save it some place ...

Get iOS Programming: The Big Nerd Ranch Guide, Second Edition 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.