4. Your First Objective-C Program

The previous chapter introduced the concepts of object-oriented programming and covered the basic syntax of Objective-C. This chapter puts those concepts and syntax to work in a simple program. Following tradition, this program will be a “Hello World” program, but with a twist: It will be an object-oriented “Hello World” program. The chapter will examine the program line by line. You should follow along by building the program yourself using Xcode, Apple’s integrated development environment (IDE).

Note

An IDE is a program that manages all aspects of application development, including file management, code writing and editing, compiling, linking, and debugging. Xcode, Apple’s IDE, runs on Mac OS X and is used ...

Get Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, 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.