O'Reilly logo

Building iPhone OS Accessories: Use the iPhone Accessories API to Control and Monitor Devices by Ken Maskrey

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 3. EA Framework Design Patterns

Now that the guts of the EAAccessory framework have been covered, I want to look at some templates, or design patterns, for common functionality that you will be using. By working through several common design patterns now, you will be able to quickly grasp the finer points of what's going on in subsequent chapters and not get buried.

I will begin with the usual suspects: MVC, delegation, singletons, and notifications. You may be familiar with some or all of these from your previous iPhone application development. I'm going to focus on how they are used with the EAAccessory framework.

After reviewing these standard design patterns, I am going to describe what I have chosen to call the EA Pattern. The EA Pattern ...

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