[This is preliminary documentation and is subject to change.]
The KNKVCSettable type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| setNullValueForKey |
Sets a value of the given key to null. Equivalent to Cocoa's –setNilValueForKey:.
| |
| setValueForKey |
Attempts to set a Key-Value Coding compliant value on the given object using the given key.
A Key-Value Coding compliant value is either a settable property named identically to the key
or a method named setKey()) that takes a single value.
If the key doesn't exist, attempts to set setValueForUndefinedKey() on the object, which
by default throws an exception. Equivalent to -setValue:forKey: in Cocoa.
| |
| setValueForKeyPath |
Attempts to set a value for the given key path of an object by
recursively calling valueForKey until the end of the path or null
is encountered, then calls setValueForKey on the final object with the final key.
See setValueForKey for more information. Equivalent to Cocoa's
-setValueForKeyPath:.
| |
| setValueForUndefinedKey |
Called when setValueForKey() can't find a Key-Value coding compliant setter 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
–setValue:forUndefinedKey:.
| |
| setValuesForKeysWithDictionary |
Sets a dictionary of keys at once. Calls setValueForKey() for each
key in the Dictionary. Equivalent to Cocoa's –setValuesForKeysWithDictionary:.
|