O'Reilly logo

Cocoa Design Patterns by Donald A. Yacktman, Erik M. Buck

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

26. Façade

The Façade pattern exists to limit the coupling between objects that interact with a complex subsystem and the objects that implement the complex subsystem. The Façade pattern hides complexity. A real-world example of the Façade pattern is the customer interaction when using the phone to order pizza delivery. As a customer, you typically communicate with just the order taker who answered the phone at the pizza parlor, but there may be many people involved in fulfilling your order. Figure 26.1 illustrates the hypothetical relationships between the people, companies, and services that may contribute toward fulfilling your pizza order.

Figure 26.1 Relationships involved in pizza order fulfillment

As a customer, you don’t normally need ...

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