Re: multiple inheritance equivalent in Core Data?
Re: multiple inheritance equivalent in Core Data?
- Subject: Re: multiple inheritance equivalent in Core Data?
- From: Todd Ransom <email@hidden>
- Date: Mon, 9 May 2005 10:10:51 -0600
I don't have Tiger yet and haven't looked at CoreData much but I hope
that won't matter much. Under Panther I would use protocols to
encapsulate these behaviors because a class can conform to multiple
protocols.
Todd Ransom
Return Self Software
http://returnself.com
On May 9, 2005, at 8:29 AM, John Timmer wrote:
I'm trying to sensibly design NSManagedObject subclasses, and I'm
running
into the following problem: many of my objects have some combination
of
names, notes, and IDs, but not all of them need all three. I'd love to
simplify the object graph, and have them inherit from common classes,
but I
can't do multiple inheritance, so my option seems to be to either not
use
superclasses, or to have the objects carry around unused keys. I'm
sure the
overhead of the second is minor, but is there any other way of
approaching
this?
Thanks,
JT
_______________________________________________
This mind intentionally left blank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden