ANDYDataManager 1.2.2

ANDYDataManager 1.2.2

LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Elvis Nuñez.

This is class that helps you to aliviate the Core Data boilerplate. Now you can go to your AppDelegate remove all the Core Data related code and replace it with:

- (void)applicationWillTerminate:(UIApplication *)application
    [[ANDYDataManager sharedManager] persistContext];

Then in your NSFetchedResultsController backed app (attached to your main context). You can do this:

#pragma mark - Actions

- (void)createTask
    [ANDYDataManager performInBackgroundContext:^(NSManagedObjectContext *context) {
        Task *task = [Task insertInManagedObjectContext:context];
        task.title = @"Hello!"; = [NSDate date];
        [context save:nil];

BOOM, it just works.

(Hint: Maybe you haven't found the best way to use NSFetchedResultsController, well here it is.)

Be Awesome

If something looks stupid, please create a friendly and constructive issue, getting your feedback would be awesome. Have a great day.