13 Objects

In this chapter, you will write your first Objective-C program. This program will be a command-line tool like the ones you have written so far, but it will be written in Objective-C.

In the early 1980’s, Brad Cox and Tom Love created the Objective-C language. For objects, they built upon the idea of structs allocated on the heap and added a message-sending syntax.

As you move from C programming to Objective-C programming, you are entering the world of objects and object-oriented programming. Be prepared to encounter new concepts and to be patient. You will be using these patterns again and again, and they will become clear with time and practice.

Objects

An object is similar to a struct (such as the

Get Objective-C 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.