Freshly created .xcmappingmodel seems to have incorrect version hashes
Freshly created .xcmappingmodel seems to have incorrect version hashes
- Subject: Freshly created .xcmappingmodel seems to have incorrect version hashes
- From: Sean McBride <email@hidden>
- Date: Mon, 17 Dec 2012 17:37:22 -0500
- Organization: Rogue Research Inc.
Hi all,
I created a brand new .xcmappingmodel for version x to y of my xcdatamodel. I don't change anything in the mapping GUI. I clean. I build. I write some test code:
NSURL* url = ...App.app/Contents/Resources/VersionXToY.cdm
mappingModel = [[NSMappingModel alloc] initWithContentsOfURL:url]
for (NSEntityMapping* em in [mappingModel entityMappings])
{
id dn = [em destinationEntityName];
id dh = [em destinationEntityVersionHash];
NSLog(@"%@ = %@", dn, dh);
}
I then open up the VersionInfo.plist file within my .app and compare the entity hashes.
For most, the VersionInfo.plist matches the hashes extracted from the .cdm, but for 2 entities they do not.
How can this be?! As I said, the xcmappingmodel is freshly created!
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden