Implemented by:
- EOEnterpriseObject
- EOCustomObject
- EOGenericRecord
- Implements:
- EOKeyValueCoding
- (com.apple.client.eocontrol only) NSKeyValueCoding
- Package:
- com.apple.client.eocontrol
- com.apple.yellow.eocontrol
The EOKeyValueCodingAdditions interface defines extensions to the basic EOKeyValueCoding interface. One pair of methods, takeValuesFromDictionary and valuesForKeys, gives access to groups of properties. Another pair of methods, takeValueForKeyPath and valueForKeyPath give access to properties across relationships with key paths of the form relationship.property ; for example, "department.name". EOCustomObject and EOGenericRecord provide default implementations of EOKeyValueCodingAdditions, which you rarely (if ever) need to override.
Because collection objects such as NSArray and NSDictionary
can't contain null as a value, null must be represented by a special
object, EONullValue. EONullValue provides a single instance that represents
the NULL value for object attributes. The default implementations
of takeValuesFromDictionary
and valuesForKeys
translate EONullValue
and null
between NSDictionaries
and enterprise objects so your objects don't have to explicitly
test for EONullValues.
public abstract void
takeValueForKeyPath
(
Object value,
String keyPath)
public abstract void
takeValuesFromDictionary
(NSDictionary aDictionary)
public abstract Object
valueForKeyPath
(String keyPath)
valueForKey
message to the final object.public abstract NSDictionary
valuesForKeys
(NSArray keys)