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
fetchRequestThe NSFetchRequest describing the primary entity to observe
contextThe managed object context to observe
sectionNameKeyPathThe section name key path to use when grouping the observed entities into sections, must be non-nil if you want section info populated
nameThe cache name to use when persisting section info to disk
relationshipKeyPathsThe 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;
KBAFetchedResultsController Class Reference