• 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: How do I add additional Attributes to a Core Data Entity?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I add additional Attributes to a Core Data Entity?


  • Subject: Re: How do I add additional Attributes to a Core Data Entity?
  • From: Charilaos Skiadas <email@hidden>
  • Date: Thu, 21 Jul 2005 11:27:46 -0500

On Jul 21, 2005, at 11:00 AM, Andrew Sage wrote:

I have a set of Core Data Entities which each have several Attributes.
This Data Model has been used for the first version of my software and I now
have a large amount of data built around it.


The problem is that I tried to add an additional Attribute to one of the Entities and it
messed everything up. Due to the Attribute's being order by name in the Entity in the Data Model it appears that my new Attribute has gone into the middle and values loaded from file are now ending up in the wrong Attributes.


Is this meant to happen? Is there any way around this or is there some kind of
versioning that can be used to migrate data from the old model to the new one?


The CoreRecipes example at http://developer.apple.com/samplecode/ CoreRecipes/CoreRecipes.html
has a detailed example on how to migrate your data. Look under "Sample Applications/Migration". I haven't personally used it, but it seems to be what you want.


Thank you.

Haris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How do I add additional Attributes to a Core Data Entity?
      • From: Charles Haron <email@hidden>
    • Re: How do I add additional Attributes to a Core Data Entity?
      • From: Isaac Csandl <email@hidden>
References: 
 >How do I add additional Attributes to a Core Data Entity? (From: Andrew Sage <email@hidden>)

  • Prev by Date: Re: NSOutlineView and outlineViewSelectionIsChanging
  • Next by Date: observeValueForKeyPath:ofObject:change:context:
  • Previous by thread: How do I add additional Attributes to a Core Data Entity?
  • Next by thread: Re: How do I add additional Attributes to a Core Data Entity?
  • Index(es):
    • Date
    • Thread