• 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: CoreData Parent Entity Confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData Parent Entity Confusion


  • Subject: Re: CoreData Parent Entity Confusion
  • From: Andrew Kimpton <email@hidden>
  • Date: Thu, 18 Aug 2005 21:15:23 -0700


On Aug 18, 2005, at 6:39 PM, Jim Correia wrote:

On Aug 18, 2005, at 7:45 PM, Andrew Kimpton wrote:


However when I instantiate an instance of the 'Heat' entity with :

Race *race = [NSEntityDescription insertNewObjectForEntityForName:@"Heat" inManagedObjectContext: [self managedObjectContext]];

the resultant class pointer in race is of type NSManagedObject. If however the entity name is @"Race" then the resultant pointer is indeed of type Race.

Any thoughts on what could be going wrong ? The data model graph looks perfectly correct, and there are no errors from the above line at run time, just the wrong type of object being created (though it does have the correct properties for a 'Heat' entity).


Did you remember to set the class on the Head entity in the data model?


Yep - the classes for each entity in the data model are set to the correct item. My data model is however behaving a little 'oddly' in the graphical editor. It's a little difficult to describe (it seems a little random) but selecting an entity in the list in the upper right, and the selection on the graph and the property list for the entity don't quite seem synchronized. Sometimes the property list will be empty. Also if I tab to move between items (properties or entities) the tab order seems a little non-sensical.

Is there a way to debug the loaded data model from within my app and confirm that the "Heat" entity is really associated with a "Heat" class etc. ?

Jim

Andrew 8-)


_______________________________________________ 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: CoreData Parent Entity Confusion
      • From: mmalcolm crawford <email@hidden>
References: 
 >CoreData Parent Entity Confusion (From: Andrew Kimpton <email@hidden>)
 >Re: CoreData Parent Entity Confusion (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Interface Builder vs Subversion
  • Next by Date: Cross-nib bindings for to-many relationships
  • Previous by thread: Re: CoreData Parent Entity Confusion
  • Next by thread: Re: CoreData Parent Entity Confusion
  • Index(es):
    • Date
    • Thread