• 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: Quincey Morris <email@hidden>
  • Date: Wed, 29 Sep 2010 10:39:29 -0700

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: Gideon King <email@hidden>
References: 
 >Core data: Inverse relationships with subclasses (From: Gideon King <email@hidden>)

  • Prev by Date: Re: NSMutableDictionary crash on PPC
  • Next by Date: Re: Core data: Inverse relationships with subclasses
  • Previous by thread: Re: Core data: Inverse relationships with subclasses
  • Next by thread: Re: Core data: Inverse relationships with subclasses
  • Index(es):
    • Date
    • Thread