| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/CoreData.framework |
| Availability | Available in Mac OS X v10.5 and later. |
| Companion guide | |
| Declared in | NSAtomicStoreCacheNode.h |
| Related sample code |
NSAtomicStoreCacheNode is a concrete class to represent basic nodes in a Core Data atomic store.
A node represents a single record in a persistent store.
You can subclass NSAtomicStoreCacheNode to provide custom behavior.
Returns a cache node for the given managed object ID.
- (id)initWithObjectID:(NSManagedObjectID *)moid
A managed object ID.
A cache node for the given managed object ID, or nil if the node could not be initialized.
NSAtomicStoreCacheNode.hReturns the managed object ID for the receiver.
- (NSManagedObjectID *)objectID
The managed object ID for the receiver.
NSAtomicStoreCacheNode.hReturns the property cache dictionary for the receiver.
- (NSMutableDictionary *)propertyCache
The property cache dictionary for the receiver.
This dictionary is used by valueForKey: and setValue:forKey: for property values. The default implementation returns nil unless the companion -setPropertyCache: method is invoked, or setValue:forKey: is invoked on the cache node with non-nil property values.
NSAtomicStoreCacheNode.hSets the property cache dictionary for the receiver.
- (void)setPropertyCache:(NSMutableDictionary *)propertyCache
The property cache dictionary for the receiver.
NSAtomicStoreCacheNode.hSets the value for the given key.
- (void)setValue:(id)value forKey:(NSString *)key
The value for the property identified by key.
The name of a property.
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.
NSAtomicStoreCacheNode.hReturns the value for a given key.
- (id)valueForKey:(NSString *)key
The name of a property.
The value for the property named key. For an attribute, the return value is an instance of an attribute type supported by Core Data (see NSAttributeDescription); for a to-one relationship, the return value must be another cache node instance; for a to-many relationship, the return value must be an collection of the related cache nodes.
The default implementation forwards the request to the propertyCache dictionary if key matches a property name of the entity for the cache node. If key does not represent a property, the standard valueForKey: implementation is used.
NSAtomicStoreCacheNode.hLast updated: 2009-05-01