Adding ObjectiveRecord syntax on top of NLCoreData.
Objective-C Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
Example
.gitignore
LICENSE
NLCoreData-ObjectiveRecord.podspec
README.md

README.md

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.