O'Reilly Mac OS X Conference 2004.
Books Safari Bookshelf Conferences O'Reilly Network
   


Arrow Home
Arrow Registration
Arrow Speakers
Arrow Feature
Presentations
Arrow Tutorials
Arrow Sessions
Arrow At-a-Glance
Arrow BOFs
Arrow Events
Arrow Exhibitors
Arrow Sponsors
Arrow Hotel/Travel
Arrow See & Do
Arrow Community
Software
Arrow Press
Arrow Mail List
Arrow Add a Banner
to Your Site

Boston terrier.

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

TrackBackTrackBack

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.