Chapter 13. Creating a Custom View

<feature><title>In This Chapter</title>
  • Adding a NIB to a Project

  • Creating a Custom Class in Interface Builder

  • Generating Implementation Files

  • Connection HUDs

  • Debugging Graphics

</feature>

The three statistics—slope, intercept, and correlation—tell the whole story of a data set and its relation to the best line through it, but pictures are easier to understand. In this chapter, we add a window with a custom view that generates a simple graph of the regression line and the points in the data set. Along the way. we’ll see how Interface Builder helps in placing and describing new view classes, and how we can use it to build complex relationships among views and controller objects.

Controller

Let’s start thinking about ...

Get Xcode 3 Unleashed 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.