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
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 mails | Author | Date |
|---|---|---|
| Daniel Child | Jan 11, 21:29 | |
| mmalc crawford | Jan 11, 22:41 | |
| Ben Trumbull | Jan 12, 01:37 | |
| mmalc crawford | Jan 12, 22:06 | |
| mmalc crawford | Jan 12, 22:08 | |
| Daniel Child | Jan 16, 05:04 |






Cocoa mail archive

