More – Sample Code
Xcode 3 Unleashed includes a CD containing sample code paralleling each chapter in the book.
| File | Priority | Description |
|---|---|---|
| DataPoint.h | Low | initWithAbscissa:ordinate: |
| Regression.m | Medium | Memory Leak |
Chapters 6-15, class Regression
Memory Leak
Graham Wheel pointed out a memory leak in class Regression. The revised sample code on this site corrects this.
Chapter 12+, class DataPoint
initWithAbscissa:ordinate:
The x value for a point is its abscissa, and the y value is its ordinate. In the text, the initializer for DataPoint introduced with unit testing is correct: initWithAbscissa:ordinate:. The terms got crossed in the version of the code that went into the CD. The revised sample code on this site corrects this.