Chapter 10. Façade

You don't feel you want to drive today, so you call up a taxicab. You don't really care what the make or model of the cab is as long as it can take you to the destination you want to go to. The first thing you'd say to the cab driver is "Take me to X," where X is the place where you wanted to go. Then the cab driver begins with a sequence of actions to "execute" the "command" (releases the brakes, changes gears, presses the accelerator, etc.). The cab driver abstracts away all the bells and whistles of the underlying complexity of operating a car. He decouples you from the originally complicated interfaces to operate the vehicle by offering the driving service (a simplified interface). The interface between the cab driver and ...

Get Pro Objective-C Design Patterns for iOS now with O’Reilly online learning.

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