Skip navigation.
 
mlre: core data subentities
FROM : mmalc crawford
DATE : Sat Jan 12 22:06:42 2008

Please try to keep the subject line constant -- it makes threading 
easier...

On Jan 12, 2008, at 12:32 PM, Daniel Child wrote:

> Thank you.
>
> You say that its "one managed object with the union of properties." 
> But if you want to set values via KVC, then are the items referenced 
> as:
>
> Super.fieldOne
> Super.fieldTwo
> SubOne.fieldOne
> etc.
> for data imported from a file of SubOne records, and
>
> Super.fieldOne
> Super.fieldTwo
> SubTwo.fieldOne
> SubTwo.fieldTwo
> etc.
> for data imported from a file of SubTwo records?
>

No.  It's not clear why you would think this.
As stated earlier, "Entity inheritance is like class inheritance" and 
"The relationship is analogous to a class and its ivars".

If you have:

@interface Super : NSObject
{
   NSString *fieldOne;
}
@end

@interface Super : SubOne
{
   NSString *fieldTwo;
}
@end

then how do you access fieldOne in an instance of SubOne?

mmalc

Related mailsAuthorDate
mlcore data subentities Daniel Child Jan 11, 21:29
mlRe: core data subentities mmalc crawford Jan 11, 22:41
mlre: core data subentities Ben Trumbull Jan 12, 01:37
mlre: core data subentities mmalc crawford Jan 12, 22:06
mlre: core data subentities mmalc crawford Jan 12, 22:08
mlRe: core data subentities Daniel Child Jan 16, 05:04