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 ...

Get Building iPhone OS Accessories: Use the iPhone Accessories API to Control and Monitor Devices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.