NSFetchRequest(KBAExtensions)

@interface NSFetchRequest (KBAExtensions)

/**
 Create and return a NSFetchRequest with the provided parameters. Calls through to KBA_fetchRequestWithOptions: with the appropriate options dictionary.
 
 @param entityName The name of the entity to fetch
 @param predicate The predicate to apply to the fetch request
 @param sortDescriptors The sort descriptors to apply to the fetch request
 @param limit The fetch limit to apply to the fetch request
 @param offset The fetch offset to apply to the fetch request
 @return The fetch request
 */
+ (instancetype)KBA_fetchRequestForEntityName:(NSString *)entityName predicate:(nullable NSPredicate *)predicate sortDescriptors:(nullable NSArray<NSSortDescriptor *> *)sortDescriptors limit:(NSUInteger)limit offset:(NSUInteger)offset;
/**
 Create and return a fetch request with the provided options.
 
 @param options The dictionary of options to use when creating the fetch request
 @return The fetch request
 */
+ (instancetype)KBA_fetchRequestWithOptions:(NSDictionary<KBANSFetchRequestOptionsKey, id> *)options;

@end

Undocumented

  • Create and return a NSFetchRequest with the provided parameters. Calls through to KBA_fetchRequestWithOptions: with the appropriate options dictionary.

    Declaration

    Objective-C

    + (nonnull instancetype)
        KBA_fetchRequestForEntityName:(nonnull NSString *)entityName
                            predicate:(nullable NSPredicate *)predicate
                      sortDescriptors:
                          (nullable NSArray<NSSortDescriptor *> *)sortDescriptors
                                limit:(NSUInteger)limit
                               offset:(NSUInteger)offset;

    Parameters

    entityName

    The name of the entity to fetch

    predicate

    The predicate to apply to the fetch request

    sortDescriptors

    The sort descriptors to apply to the fetch request

    limit

    The fetch limit to apply to the fetch request

    offset

    The fetch offset to apply to the fetch request

    Return Value

    The fetch request

  • Create and return a fetch request with the provided options.

    Declaration

    Objective-C

    + (nonnull instancetype)KBA_fetchRequestWithOptions:
        (nonnull NSDictionary<KBANSFetchRequestOptionsKey, id> *)options;

    Parameters

    options

    The dictionary of options to use when creating the fetch request

    Return Value

    The fetch request