RKManagedObjectCaching Protocol Reference
Conforms to | NSObject |
Declared in | RKManagedObjectCaching.h |
Overview
Objects implementing the RKManagedObjectCaching
provide support for retrieving managed object matching a set of attributes using an opaque caching strategy. The objects retrieved are not required to be in any particular order, but must exactly match the attribute values requested.
Tasks
Retrieving Managed Objects
-
– managedObjectsWithEntity:attributeValues:inManagedObjectContext:
Returns all managed objects for a given entity with attributes whose names and values match the given dictionary in a given context.
required method -
– didFetchObject:
Invoked to inform the receiver that an object was fetched and should be added to the cache.
-
– didCreateObject:
Invoked to inform the receiver that an object was created and should be added to the cache.
-
– didDeleteObject:
Invoked to inform the receiver that an object was deleted and should be removed to the cache.
Instance Methods
didCreateObject:
Invoked to inform the receiver that an object was created and should be added to the cache.
- (void)didCreateObject:(NSManagedObject *)object
Parameters
- object
The object that was created in a managed object context.
Declared In
RKManagedObjectCaching.h
didDeleteObject:
Invoked to inform the receiver that an object was deleted and should be removed to the cache.
- (void)didDeleteObject:(NSManagedObject *)object
Parameters
- object
The object that was deleted from a managed object context.
Declared In
RKManagedObjectCaching.h
didFetchObject:
Invoked to inform the receiver that an object was fetched and should be added to the cache.
- (void)didFetchObject:(NSManagedObject *)object
Parameters
- object
The object that was fetched from a managed object context.
Declared In
RKManagedObjectCaching.h
managedObjectsWithEntity:attributeValues:inManagedObjectContext:
Returns all managed objects for a given entity with attributes whose names and values match the given dictionary in a given context.
- (NSSet *)managedObjectsWithEntity:(NSEntityDescription *)entity attributeValues:(NSDictionary *)attributeValues inManagedObjectContext:(NSManagedObjectContext *)managedObjectContext
Parameters
- entity
The entity to retrieve managed objects for.
- attributeValues
A dictionary specifying the attribute criteria for retrieving managed objects.
- managedObjectContext
The context to fetch the matching objects in.
Declared In
RKManagedObjectCaching.h