re: core data subentities
re: core data subentities
- Subject: re: core data subentities
- From: mmalc crawford <email@hidden>
- Date: Sat, 12 Jan 2008 13:06:42 -0800
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
_______________________________________________
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