APLCoreDataStore 0.0.3

APLCoreDataStore 0.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Nov 2015

Maintained by Michael Kamphausen, Tino Rachui, Mathias Köhnke, cg, Mathias Koehnke, Nico Schümann, Heiko Wichmann, Stephan Lerner, Famara Kassama.



  • By
  • Michael Kamphausen

CoreData stack with synchronized NSManagedObjectContexts for main and private queue.

Concept and code is from 'A Guide to Core Data Concurrency' by Theodore Calmes.

Installation

Usage

Import header file:

#import "APLCoreDataStore.h"

APLCoreDataStore uses a merged managed object model of all managed object models found in your application's main bundle.

It creates 'Model.sqlite' in your application's documents folder as persistent store. If you want a different name or location you could subclass APLCoreDataStore and override persistentStoreURL.

You can use mainQueueContext and privateQueueContext like this:

[[APLCoreDataStore privateQueueContext] executeFetchRequest:fetchRequest error:&error];