Re: Core data: Inverse relationships with subclasses
Re: Core data: Inverse relationships with subclasses
- Subject: Re: Core data: Inverse relationships with subclasses
- From: Gideon King <email@hidden>
- Date: Thu, 30 Sep 2010 08:30:49 +1000
Sorry, I should have been clearer. It is a sub-entity which is implemented as a subclass.
Regards
Gideon
On 30/09/2010, at 3:39 AM, Quincey Morris wrote:
> On Sep 29, 2010, at 06:28, Gideon King wrote:
>
>> I would have thought it would be OK for the relationship to point to an instance of FooSub shouldn't it? After all, it is a subclass of Foo. Or do things work differently for subclasses in Core Data? If so, how should I work around this problem?
>
> You repeatedly say "subclass". Do you mean "sub-entity", or do you really mean a subclass with no corresponding Core Data entity?
>
> Core Data needs to know, from your data model, the custom class (if any) for every entity. It can't use NSManagedObject subclasses that aren't modeled, even if they're sub-subclasses of a modeled subclass.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden