2. MVC Analyzed and Applied

This chapter introduces a tiny Pay Calculator application and provides two separate implementations of the application. The first implementation uses a straightforward but naive non-MVC design. The second implementation highlights the improvements realized by using the MVC design pattern.


The two implementations of Pay Calculator serve as a high-level whirlwind tour of Cocoa technologies and developer tools. The example provides a sense of what’s possible, but there isn’t space in this chapter to describe all of the underlying technology exploited to build Pay Calculator with drag-and-drop in Interface Builder and Xcode. Pay Calculator shows the high altitude view looking down on a trivial application built ...

Get Cocoa Design Patterns now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.