Take the 2-minute tour ×  I am trying to add objects to a
persistent store in Core Data. When the user taps the save
button I initialize a new object which is a subclass of the
NSManagedObject class and in the data model.  Profile
*newProfile = [[Profile alloc]
initWithEntity:[NSEntityDescription entityForName:@"Profile"
inManagedObjectContext:MOC] insertIntoManagedObjectContext:MOC];
[newProfile setValue:userName.text forKey:@"userName"];
[newProfile setValue:txtInstitution.text forKey:@"institution"];
I can verify in the console that the values for userName and
txtInstitution are correct and what expected, and also that the
object has the proper attributes. However, it seems to save the
object with the same values as whatever the first object saved
was. Only one profile is created at a time, and the MOC is saved
after each profile is added in this way.  Also, when a table
tries to populate with data from the persistent store it will
create rows as though are as many objects in the store as I have
created