O'Reilly logo

Mac Programming for Absolute Beginners by Wallace Wang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Understanding the Cocoa Framework

Up until this point in the book, you've been learning the basic principles of programming. First, you learned about the three basic building blocks of programming (sequential instructions, branches, and loops). Next, you learned about Boolean expressions, mathematical operators, variables, and constants.

While it's perfectly possible to create a program using what you've learned so far, programming for the Mac is much harder because you have to write code to create and display your user interface, code to perform common functions, and code to make your program do something unique.

To make Mac programming easier, Apple provides a library of prewritten and tested code, organized in something called the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required