2. Objective-C

iPhone applications are written in the Objective-C language, a simple extension of the C language. This book doesn’t have enough pages to cover the entire C language. Instead, this book will assume you know some C and understand the ideas of object-oriented programming. If C or object-oriented programming makes you feel uneasy, Kochan’s Programming in Objective-C is a worthwhile read.

In this chapter, you will learn the basics of Objective-C and create RandomPossessions, a command-line tool that you will reuse in an iPhone application later in the book. (So even if you’re familiar with Objective-C, you’ll still want to go through this chapter in order to create RandomPossessions.)

Objects

Let’s say you need a way to represent ...

Get iPhone Programming: The Big Nerd Ranch Guide 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.