Summary

In this chapter, we wrote a program that used Objective-C but not IB. In Chapter 3, we were limited by the tools that IB provided us: there was no way to let the programmer create loops, do math, or perform most other tasks that we associate with “programming” a computational engine. We did lots of programming in this chapter, but we had to think a lot about the mechanics of the program that IB supplied for us in Chapter 3.

The real power of the Cocoa programming environment is that it lets you combine IB (and PB) with Objective-C, taking advantage of what each one does best: IB for creating the interface and making connections that lead to message passing, and Objective-C for creating new classes and for the actual writing of the computational engine. Throughout the rest of this book, we’ll learn how to create powerful applications while writing a relatively small amount of code.

Get Building Cocoa Applications: A Step by Step 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.