I'm working on an App that uses a persistent store to save and retreive data. I have it all working, but there is some curious behavior that makes me doubt very much if what I'm doing is correct.
When I build my App, some values are loaded into the persistent store and can be accessed. This remains true when I close the App in the interface builder and then reload it.
The loaded data, when logged, looks shortly like:
entity: Appointment; data: { day = monday; hours = 8; project = project1; task = task1; }
Now, when rebuilding the App, the entries in the store are still present, however, the data that should be in those entries appears to be destroyed.
The loaded data now looks like:
entity: Appointment; data: fault
I would assume that either the store is rebuilt entirely and thus no entries would remain, or it would stay intact as it was before rebuilding.
An appointment is of NSManagedObject
class defined in my xcdatamodel, and has four string attributes (day, hours, project and task).