O'Reilly logo

Learn Objective-C on the Mac: For OS X and iOS, Second Edition by Scott Knaster, Waqar Malik, Mark Dalrymple

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2

Extensions to C

Objective-C is nothing more than the C language with some extra features drizzled on top—it’s delicious! In this chapter, we’ll cover some of those key extras as we take you through building your first Objective-C program—and your second one too.

The Simplest Objective-C Program

You’ve probably seen the C version of the classic Hello World program, which prints out the text “Hello, world!” or a similar pithy remark. Hello World is usually the first program that neophyte C programmers learn. We don’t want to buck tradition, so we’re going to write a similar program here called Hello Objective-C.

Building Hello Objective-C

As you work through this book, we’re assuming you have Apple’s Xcode tools installed. If you don’t ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required