ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  The Cocoa Controller Layer
Subject:   Key paths
Date:   2004-04-07 15:43:45
From:   llnldave
Mike,
A minor error in your article. The Model Key Path is not just simply "the key used to access the property of the data model whose value we're interested in displaying". From the ADC web site, "A key path is a string of dot separated keys that is used to specify a sequence of object properties to traverse.". In other words, foo.bar.baz means get the baz property of the bar object in the foo object.


Right now this is broken in Panther. I have a bug report in on this...when it's fixed, KVC and KVO will be even more fun with which to play!


Dave