magicalpanda/MagicalRecord — Issue #124: Autocreate managed object context?
Author: tonyxiao
Created: 2011-12-29 17:20:26+00:00
State: open

One problem with calling `+ (void) setupCoreDataStack;` from the `applicationDidFinishLaunching:(UIApplication *) withOptions:(NSDictionary *) ` as the documentation suggested is that bindings in views to managedObjectContext get called before applicationDidFinishLaunching. Perhaps ManagedObjectContext could also be lazily created and automatically setup just like ManagedObjectModel and PersistentStoreCoordinator?

static BOOL shouldAutoCreateManagedObjectModel_;
static BOOL shouldAutoCreateDefaultPersistentStoreCoordinator_;

I can write the lazy creation code but I am wondering if there is any design decision involved to not auto create the managedObjectContext.