Cocoa and Carbon
OS X can run two different kinds of programs, each with different characteristics: Cocoa and Carbon. The explanation involves a little bit of history. When Mac OS X came along in 2001, Apple gave software companies a choice: They could either adapt their existing software to the new operating system—or rewrite it from the ground up.
If programmers were willing to put some effort into getting with the OS X program, they could update their existing software. These are what Apple calls Carbonized programs, named for the technology (Carbon) that permits them to run on OS X.
But as OS X became popular, more and more software companies opted to create programs exclusively for it. The geeks call such programs Cocoa applications. Although they look exactly like Carbonized programs, they feel a bit more solid. And they offer a number of special features that Carbonized programs don’t offer:
Note
The following features appear in almost all Cocoa programs. That’s not to say that you’ll never see these features in Carbonized programs; the occasional Carbon program may offer one of these features or another.
The Fonts pane: When you use a Carbon program, you usually access these fonts the same way as always: using a Font menu. But when you use a Cocoa program, you get the Fonts pane, which makes it far easier to organize, search, and use your font collection. Chapter 9 describes fonts, and the Fonts pane, in more detail.
Retina friendliness: In general, Cocoa programs automatically ...
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