• 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: Inverse relationships with subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core data: Inverse relationships with subclasses
      • From: Quincey Morris <email@hidden>
References: 
 >Core data: Inverse relationships with subclasses (From: Gideon King <email@hidden>)
 >Re: Core data: Inverse relationships with subclasses (From: Quincey Morris <email@hidden>)

  • Prev by Date: Core Data inheritance across models?
  • Next by Date: Re: Open Multiple Files
  • Previous by thread: Re: Core data: Inverse relationships with subclasses
  • Next by thread: Re: Core data: Inverse relationships with subclasses
  • Index(es):
    • Date
    • Thread