• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Freshly created .xcmappingmodel seems to have incorrect version hashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Simple question about storyboard
  • Next by Date: Re: NSOpenPanel runModal on a dispatch
  • Previous by thread: LSSharedFileListInsertItemURL does not honor the display name or icon
  • Next by thread: NSView mouseMoved problem
  • Index(es):
    • Date
    • Thread