Re: CoreData Parent Entity Confusion
Re: CoreData Parent Entity Confusion
- Subject: Re: CoreData Parent Entity Confusion
- From: Jim Correia <email@hidden>
- Date: Thu, 18 Aug 2005 21:39:57 -0400
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?
Jim
_______________________________________________
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