-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following documentation in Readme doesn't seem to setup core data correctly #55
Comments
So, I downloaded your project, it looks like you're not using one of the setup methods to initialize the core data stack: [MagicalRecordHelpers setupCoreDataStack]; I put this method call before your call to createData, and the app worked. I think there is a line in the docs that say that the Core Data stack should be created for you, but this doesn't seem to be the case. Also, I recommend against cleaning up the stack on background or resign active because your app can potentially still be running, and using data from core data. Cleanup is for unit testing and application termination. I hope this helps get you going, I'm going to have a more complete sample app in the project sometime soon (within the next month). Cheers, Saul Saul Mora On Sunday, July 31, 2011 at 6:21 AM, aussiegeek wrote:
|
Thanks Saul, All up and running smoothly now. Also noticed you had code to generate an NSFetchedResultsController, wow that is much simpler! On 01/08/2011, at 1:51 AM, casademora wrote:
Alan Harper |
I followed the instructions in the readme, but get an exception "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Product'" as soon as I try and send createEntity.
A sample project is at https://github.com/aussiegeek/MagicalRecordTest
The text was updated successfully, but these errors were encountered: