Hi all,

I'm trying to create, in Xcode's .xcmappingmodel editor, a working 
NSAddEntityMappingType type mapping.

I press the 'Add Entity Mapping' button and a new mapping is created with both 
the source and destination set to 'invalid value'.  If I change only the 
destination to my desired entity then the 'type' indeed becomes 'Add', 
presumably corresponding to NSAddEntityMappingType.  Everything builds without 
warning.

But the mapping never seems to get executed.  I conclude this both because 
there is no entity created and also because I set one of the attribute mappings 
to invoke a custom NSEntityMigrationPolicy subclass, and I never break inside 
it.

What am I missing in how to use this?  Or am I misunderstanding what 
NSAddEntityMappingType is for?  My goal is to unconditionally create a single 
instance of a new entity when migrating old stores.

Thanks,

-- 
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to