Chapter 3. Objective-C

Once upon a time, a man named Brad Cox decided that it was time for the world to move toward a more modular programming style. C was a popular and powerful language. Smalltalk was an elegant untyped object-oriented language. Starting with C, Brad Cox added Smalltalk-like classes and message-sending mechanisms. The result, Objective-C, is a very simple extension of the C language. In fact, Objective-C was originally simply a C preprocessor and a library.

Objective-C is not a proprietary language. Rather, it is an open standard that has been included in the Free Software Foundation’s GNU C compiler (gcc) for many years. Cocoa was developed using Objective-C, and most Cocoa programming is done in Objective-C.

Teaching C and basic ...

Get Cocoa Programming for Mac OS X, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.