• 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:57:40 +1000

Hi Jerry,

Can I just clarify what you mean about working around a bug on 10.5? I do need this to work on 10.5.

FooSub is a subentity of Foo, and both have their classes defined, with FooSub's class being a subclass of Foo's class.

Thanks

Gideon

On 30/09/2010, at 3:49 AM, Jerry Krinock wrote:

>
> On 2010 Sep 29, at 09:19, jeremy wrote:
>
>> For a solution, rework your schema to subclass FooSub directly from NSManagedObject.
>
> That might work.  If it doesn't,
>
> On Sep 29, 2010, at 9:28 AM, Gideon King wrote:
>
>> All entities are concrete … 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.
>
> Not sure about that.  I'd have made it be a subentity.  Core Data knows more about entities than classes.
>
> (But if you do make a subentity, and do a migration someday, remember that you need to work around a bug if you allow operation in Mac OS 10.5.)
>
>
_______________________________________________

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

  • Prev by Date: Re: 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