I'm using MagicalRecord in a Mac App and when I close the app I lose all the data that I've saved in a session.
I use this method to setup the database:
Am I doing something wrong?
Yes, I do.
// Here I set the variables
[[NSManagedObjectContext defaultContext] save];
I've checked that I'm saving in the main thread so I had problems with concurrency in iOS but this is not the case.
When I query in the same session that I've saved things it works perfectly, but when I restart the app, the data has gone.
I've already fixed the issue that I was having, I've use the debug variable in prefix to see the logs and now is working.
Thanks for this awesome product and for your support!!!