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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.