So I am going back to update a Mac app that uses core data to persist a small amount of user data. I've been using this setup for a while and did not have an issue with this when I compiled under os X snow leopard. Now, when I do a fresh install on my MBP os x Mavericks, the sqlite file has the entity tables set up but no data in any of the fields. This is the code Ive been using:
-(void) saveTheContext {
NSError *error;
if (![[[CoreDataSingleton sharedCoreDataSingleton] managedObjectContext] save:&error]) {
NSLog(@"error writing to db 2 %@", [error description]);
}
NSLog(@"context saved");
}
I also tried saving to the "parent context" as well and the behavior is slightly different, the initial value i set for a field is loaded in the game even after a relaunch, but still if i look at the sql file there is no data in the fields for the given entity, and even if the value changes in the app on relaunch it goes back to the original value.
I'm thinking it may be a permissions issue with my machine or something, anyone run into this before?