PATH |
Inherits from: Object
Package: com.webobjects.eocontrol
The EOKeyValueCodingAdditions.DefaultImplementation class provides default implementations of the EOKeyValueCodingAdditions interface.
An EOCustomObject uses EOKeyValueCodingAdditions.DefaultImplementation's default implementations. EOKeyValueCodingAdditions.Support also enables you to put non-enterprise objects into the interface layer by declaring that your class conforms to key-value coding.
The methods in the DefaultImplementation class are just like the methods defined by the EOKeyValueCodingAdditions interface, except they are all static methods and they take an extra argument-the enterprise object on which the default implementation should operate. For example, suppose you want to implement an Employee enterprise object class that doesn't inherit from EOCustomObject but that uses DefaultImplementation's default implementations. Employee's valuesForKeys method would look like this:
public abstract NSDictionary valuesForKeys(NSArray keys) return EOKeyValueCodingAdditions.Support.valuesForKeys(this, keys); }
public static void takeValueForKeyPath( NSKeyValueCoding anObject, Object value, String keyPath)
public static void takeValuesFromDictionary( NSKeyValueCoding anObject, NSDictionary aDictionary)
See Also: takeValuesFromDictionary (EOKeyValueCodingAdditions)
public static Object valueForKeyPath( NSKeyValueCoding anObject, String keyPath)
public static NSDictionary valuesForKeys( NSKeyValueCoding anObject, NSArray keys)
See Also: valuesForKeys (EOKeyValueCodingAdditions)
© 2001 Apple Computer, Inc. (Last Published April 19, 2001)