Instance Method

setValue:forKey:

Sets the value for the given key.

Declaration

- (void)setValue:(id)value forKey:(NSString *)key;

Parameters

value

The value for the property identified by key.

key

The name of a property.

Discussion

The default implementation forwards the request to the propertyCache dictionary if key matches a property name of the entity for this cache node. If key does not represent a property, the standard setValue:forKey: implementation is used.

See Also

Managing Node Data

objectID

The managed object ID of the node.

propertyCache

The property cache dictionary of the node.

- valueForKey:

Returns the value for a given key.