Trying to work through examples in the book "More iPhone3 Development". To generate the code made in the first 2 chapters, you can create a project -- a navigation application, using core data for storage. However, when I try to add string attributes to the entity already created, I get an error.
Below is the only code in the program that references any attribute --
" [newManagedObject setValue:[NSDate date] forKey
"timeStamp"];"
This is under the method "insertNewObject".
To add another attribute, I change this to
[newManagedObject setValue
"" forKey
"name"];
"name" is the second attribute, with type of string.
When I do this, I get the error, stating --
"The model used to open the store is incompatible with the one used to create the store"
Any thoughts why this might be happening? Thanks for any help.
Adam
Below is the only code in the program that references any attribute --
" [newManagedObject setValue:[NSDate date] forKey
This is under the method "insertNewObject".
To add another attribute, I change this to
[newManagedObject setValue
"name" is the second attribute, with type of string.
When I do this, I get the error, stating --
"The model used to open the store is incompatible with the one used to create the store"
Any thoughts why this might be happening? Thanks for any help.
Adam