KBAFetchedResultsController
@interface KBAFetchedResultsController<ResultType : id <NSFetchRequestResult>>
: NSFetchedResultsController
KBAFetchedResultsController is a NSFetchedResultsController subclass that takes an additional argument in its initializer for observing relationship key paths for changes.
-
Create and return an instance of the receiver with the provided parameters.
Declaration
Objective-C
- (nonnull instancetype) initWithFetchRequest:(nonnull NSFetchRequest<ResultType> *)fetchRequest managedObjectContext:(nonnull NSManagedObjectContext *)context sectionNameKeyPath:(nullable NSString *)sectionNameKeyPath cacheName:(nullable NSString *)name relationshipKeyPaths: (nonnull NSSet<KBARelationshipKeyPath *> *)relationshipKeyPaths;
Parameters
fetchRequest
The NSFetchRequest describing the primary entity to observe
context
The managed object context to observe
sectionNameKeyPath
The section name key path to use when grouping the observed entities into sections, must be non-nil if you want section info populated
name
The cache name to use when persisting section info to disk
relationshipKeyPaths
The set of KBARelationshipKeyPath objects representing relationship key paths to observe for changes
Return Value
The initialized instance
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)initWithFetchRequest:(NSFetchRequest<ResultType> *)fetchRequest managedObjectContext:(NSManagedObjectContext *)context sectionNameKeyPath:(nullable NSString *)sectionNameKeyPath cacheName:(nullable NSString *)name NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;