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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access