first core data add not appearing in database

Hi,

My first add to the database does not appear. All seqsequent are there just fine, but always the first is lost.

Any suggestions. I'm using xcode 8.3.3 and I am telling it to save the database each time with the following code:


NSError *error = nil;

NSManagedObjectContext *managedObjectContext = self.managedObjectContext;

if (managedObjectContext != nil) {

if (![self.managedObjectContext save:&error]) {

NSLog(@"Error! %@", error);

}

}


Thanks!

Replies

You're supplying insufficient context to answer the question.


How did you construct your Core Data stack, and how have you arranged your managed object contexts?