Chapter    2

Hello, World

As you’re probably well aware, it has become something of a tradition to call the first project in any book on programming “Hello, World.” Following the “if it ain’t broke, don’t fix it” guideline, we’ll stick with tradition.

Building “Hello, World”

By now, you should have Xcode installed on your machine. You should also have the Learn Cocoa Projects folder ensconced safely somewhere on your hard drive. If by some set of circumstances you don’t, go directly to Chapter 1 (do not pass Go, do not collect $200) and reread the appropriate sections.

The first project we’ll be working with is located in the Chapter02/Chapter2 folder. Launch Xcode, which is located in the Applications folder. Just in case you’ve never used ...

Get Learn Cocoa on the Mac, 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.