Instance Method


Invoked by setValue:forKey: when it’s given a nil value for a scalar value (such as an int or float).


- (void)setNilValueForKey:(NSString *)key;



The name of one of the receiver's properties.


Subclasses can override this method to handle the request in some other way, such as by substituting 0 or a sentinel value for nil and invoking setValue:forKey: again or setting the variable directly. The default implementation raises an NSInvalidArgumentException.

See Also

Setting Values

- setValue:forKeyPath:

Sets the value for the property identified by a given key path to a given value.

- setValuesForKeysWithDictionary:

Sets properties of the receiver with values from a given dictionary, using its keys to identify the properties.

- setValue:forKey:

Sets the property of the receiver specified by a given key to a given value.

- setValue:forUndefinedKey:

Invoked by setValue:forKey: when it finds no property for a given key.