kevinrenskers / NLCoreData-ObjectiveRecord

Adding ObjectiveRecord syntax on top of NLCoreData.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NLCoreData-ObjectiveRecord

No Maintenance Intended

Adding ObjectiveRecord syntax on top of NLCoreData.

What's this?

ObjectiveRecord has a really nice syntax for working with Core Data:

Person *john = [Person create:@{ 
    @"name": @"John",
    @"age": @12, 
    @"member": @NO 
}];

NSArray *people = [Person where:@{ 
    @"age": @18,
    @"member": @YES,
    @"state": @"NY"
}];

Sadly, it doesn't offer any support for background contexts or nested (asynchronous) saving.

NLCoreData on the other hand has a solid feature set for working with Core Data, but is missing this nice way of searching for data, it expects you to write the predicate.

NLCoreData-ObjectiveRecord is a simple category, adding the ObjectiveRecord syntax on top of NLCoreData.

Credits

All the credits go to ObjectiveRecord and NLCoreData.

About

Adding ObjectiveRecord syntax on top of NLCoreData.

License:MIT License


Languages

Language:Objective-C 92.8%Language:Ruby 7.2%