Smf
No, not removing the old model version, removing the .m and .h files that were generated in Xcode 3. Generating new ones works fine, but it doesn’t let you save them in the .xcdatamodeld folder. And like you said, it makes more sense to put them somewhere else. However, I can’t remove the old .m and .h files from under the .xcdatamodeld “category” in Xcode. No delete option. When I go into the folder in finder or terminal and remove the files, Xcode complains about missing references. I can’t figure out how to get them out of my project. For now I added a #warning to the include files so that I will know if they are being included instead of my new ones.
Hi, thanks for your tutorial! I’m quite new to objective-c programming, may I know for step 7, do I insert in like the following?
persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel: [self managedObjectModel]];
if (![persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeUrl NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,
[NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil error:&error]];
I’m still getting an error near options. (Error: Expected’:'). Could you please help me with this? Thanks!