The same arguments apply to the choice between standard button and other controls, and building your own. Often, you will want to use the familiar controls provided as is by Cocoa.
And often, you won't.
The modern requirements of branding, corporate identity, or just an app studio's own style, means that having buttons, faders, and other elements that conform to a particular image or style, are easy to incorporate into an app's UI, especially once a small library of code templates has been built up (and it's amazing just how quickly that happens).
Hopefully, by the end of this chapter, you'll be fully convinced that drawing in code is as productive as it is fun.
Essentially, we have two ways to access the functionality made available by Core Graphics:
- We can use AppKit code, which wraps Core Image code in a simple and abstracted, though limited, interface
- We can call the CG methods directly, leveraging all its power, but with the additional...