Chapter 22. Frameworks

In This Chapter

• What a framework is

• Adding a framework target

• Using the “Copy Files” build phase

• Using archives and installation trees

• Understanding command-line gdb

In Chapter 19, “A Custom View for Mac OS X,” you constructed a bar-graph view that is isolated from the code inside Mac Passer Rating. Yes, its method selectors refer to games, and the drawing code pulls in properties with names such as attempts and completions, but the code doesn’t link to any code in the rest of the application.

Once again I’m going to pretend that PasserGraphController and PassCompletionView form a package that I’d want to reuse. We did the same thing with passer_rating in Chapter 6, “Adding a Library Target.”

But there’s a difference ...

Get Xcode® 4 Unleashed, Second Edition 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.