• 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
Re: Core Data Mapping Model: New attributes missing in Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Mapping Model: New attributes missing in Editor


  • Subject: Re: Core Data Mapping Model: New attributes missing in Editor
  • From: juan fernandez <email@hidden>
  • Date: Mon, 01 Jul 2013 18:59:02 -0700

I actually have encountered a few problems with the mapping model editor on Xcode 4.6.2 that would generate a mapping model which can not be used for migration in the runtime. My solution was to generate the mapping model by code, since I was able to reproduce the problem on a sample project and find inconsistency on the xml data generated for the mapping mode.
On Jul 1, 2013, at 6:51 PM, Jerry Krinock <email@hidden> wrote:

> The Mapping Model editor in Xcode 4.6 is not showing new attributes of entities in the destination.  Here is what I did.
>
> • Enter the Organizer - Documentation.
> • Search for "TwoManyControllers".  An Apple sample project named "Crossing To-Many Relationships with Cocoa Bindings" will be found.
> • Open that sample project.
> • Create a new Core Data Model Version.
> • Open this new Model Version in the editor.
> • To the entity "Product", add another attribute, "flavor", of type String.
> • Create a new Mapping Model open it in the editor.
> • Set the source model to the original data model.
> • Set the destination model to the new data model.
>
> Now say I want to add an Attribute Mapping for the new Destination Attribute, "flavor".  In real life, this would happen if legacy Products did have a flavor, which is not specified in the data model, but is derivable from other attributes.  So, still editing the mapping model,
>
> • In the ENTITY MAPPINGS source list, select ProductToProduct.
> • Add an Attribute Mapping.  Its Destination Attribute shows up as "No Value".
> • Click the "No Value" to show its popup menu.
>
> Expected Result:  The new attribute, "flavor", should be an item in the popup menu.
>
> Actual Result:  It's not.  Only the legacy attribute(s) of Product are in the popup menu.
>
> Why not?
>
> Thanks,
>
> Jerry Krinock
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Core Data Mapping Model: New attributes missing in Editor
      • From: Jerry Krinock <email@hidden>
References: 
 >Core Data Mapping Model: New attributes missing in Editor (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Core Data Mapping Model: New attributes missing in Editor
  • Next by Date: Re: Core Data Mapping Model: New attributes missing in Editor
  • Previous by thread: Core Data Mapping Model: New attributes missing in Editor
  • Next by thread: Re: Core Data Mapping Model: New attributes missing in Editor
  • Index(es):
    • Date
    • Thread