/* * We can fetch a record, modify it and then call this save function to save our changes */ - (BOOL)saveToDb{ NSError *error = nil; BOOL returnVal = ( [[self managedObjectContext] save:&error] ); if(error != nil) NSLog(@"%@", error); return returnVal; }