Re: How to create subentity object inheriting from superentity object in core data
Re: How to create subentity object inheriting from superentity object in core data
- Subject: Re: How to create subentity object inheriting from superentity object in core data
- From: Quincey Morris <email@hidden>
- Date: Wed, 16 Sep 2009 21:10:40 -0700
On Sep 16, 2009, at 18:38, Leon Starr wrote:
To get this to work, without KVC, I need to declare @property/
@dynamic for license in Auto, Sedan and Truck. (Can't just put it
in Auto and expect Sedan.license to work). No big deal unless I
have a bunch of common properties in the parent entity.
No, you don't have to redeclare the properties in the subclasses.
They're inherited normally. Remember that the entity inheritance chain
and the Objective-C inheritance chain are orthogonal -- they coincide
only to the extent you ensure they coincide.
_______________________________________________
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