O'Reilly logo

Pro Objective-C Design Patterns for iOS by Carlo Chung

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

Chapter 8. Adapter

Nikola Tesla invented the AC electric power system back in the 19th century. He probably couldn't imagine that we would have the annoying problem of plugging an electric device made for the United States into a wall outlet in Europe without any adapter. Picture me holding an electric razor and looking at a wall outlet in the bathroom of my hotel room in Europe but missing an adapter. "What now?" "Should I buy a new razor here?" "But then when I bring it back to the United States, I will need an adapter for it too."

In object-oriented software design, sometimes you want to reuse some useful and well-tested classes in other new areas of an application. But it's quite common that new features require new interfaces and they don't ...

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