Please note: this project is inactive since early 2006
8.2.2 The whole API
- valueForKey() gets a value for a given attribute's name,
- takeValueForKey() sets a value for a given attribute's name,
- valueForKeyPath() is working the same way than
valueForKey, except that the key can be here expressed by dotted
notation to automatically access an other related object's property (such
as:
"author.lastName"
for a Book object -see examples,
below)
- takeValueForKeyPath() is like takeValueForKey with
dotted notations
Additionally, two more methods are available:
- valuesForKeys(): returns the list of values taken by the
supplied attributes
- takeValuesFromDictionary(): sets each key/attribute with its
corresponding value
Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted by: