Skip to content
Arel like NSPredicate constructor
Objective-C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Arelish.h
Arelish.m
README.textile
UBCoreDataHelper.h
UBCoreDataHelper.m
UBCoreDataMigrationHelper.h
UBCoreDataMigrationHelper.m

README.textile

Arelish

Arel Ruby library like NSPredicate constructor.

Usage


Arelish* helper = [Arelish arelishWithEntity:NSStringFromClass([YourCoreDataModel class]) context:managedObjectContext];
helper = [[helper where:@"parent" is:self] where:@"status" IN:[NSNumber numberWithInt:0],[NSNumber numberWithInt:1],nil];

NSFetchRequest* request = [helper request];

Copying notice

Written by Soutaro Matsumoto.

Distributed under MIT License.

Something went wrong with that request. Please try again.