[This is preliminary documentation and is subject to change.]

The KNKVCGettable type exposes the following members.

Methods

  NameDescription
dictionaryWithValuesForKeys
Returns a dictionary of the values for the array of keys given. Calls valueForKey for each key given. Equivalent to Cocoa's -dictionaryWithValuesForKeys:.
valueForKey
Attempts to get a Key-Value Coding compliant value from the given object using the given key. A Key-Value Coding compliant value is either a gettable property named identically to the key or a method named identically to the key (i.e., NOT getKey()) that returns a value. If the key doesn't exist, attempts to return valueForUndefinedKey() on the object, which by default throws an exception. Equivalent to -valueForKey: in Cocoa.
valueForKeyPath
Attempts to get a value from the given key path of an object by recursively calling valueForKey until the end of the path or null is encountered. See valueForKey for more information. Equivalent to Cocoa's -valueForKeyPath:.
valueForUndefinedKey
Called when valueForKey() can't find a Key-Value Coding compliant method for the given key. If you wish to define custom behaviour for your object's KVC compliance, it's recommended that you override this method. The default implementation throws an exception. Equivalent to Cocoa's valueForUndefinedKey:.

See Also