initializeDocument crashes PPRecipes
02 Feb 2013, 00:33
William L. Chapman (2 posts)
In the iCloud chapter sample code, there is an option to use an UIManagedDocument core data stack. In didFinishLaunchingWithOptions: there are two possibilities for initializing the stack:
The sample code runs perfectly using initializeCoreDataStack, but crashes if one uncomments initializeDocument to try that method. It seems the managedObjectContext is not set up before it is needed to set up the fetchedResultsController.
Is there a best practice to get the timing right on this? i.e., what else should be changed in the sample code to get it to run using the UIManagedDocument approach?
Thanks so much for a wonderful book. What a great resource on a difficult topic!
|You must be logged in to comment|