
|
 |

|
Session
The Not So Boring Life of Model Classes
mmalcolm Crawford, Apple Computer, Inc.
Track: Programming & Scripting
Date: Wednesday, October 27
Time: 11:35am - 12:20pm
Location: Stevens Creek
TrackBack
Model classes, the unseen workhorses of every Cocoa application, have
always had a number of conventions to adhere to such as key-value
coding (KVC) for the naming of instance variables and the format of
accessor methods. With the advent of Cocoa bindings and key-value
observing (KVO), there are even more conventions to follow. But with
these conventions come an amazing amount of power and flexibility. And
looking to the future, these conventions appear set to become more
important still.
This presentation first enumerates the basic accessor method patterns,
and illustrates when each should be used. It then reviews key-value
coding, and in particular the implementation and use of validation
methods. Finally it discusses key-value observing, and highlights the
use of KVO in an application architecture to support undo. Along the
way, you'll learn about techniques to prepare your applications for the
future.
|
O'Reilly Home | Privacy Policy
 © 2004, O'Reilly Media, Inc.
|
 |