Subclassing and Reusable Components
Subclassing and Reusable Components
- Subject: Subclassing and Reusable Components
- From: Jaime Magiera <email@hidden>
- Date: Mon, 25 Oct 2004 21:07:22 -0400
So, I realize WO has a lot of potential for re-using classes and
components. However, I haven't *really* taken advantage of that power
yet. Now is the time to start :)
I have a "Project" object. This object is sub-classed into
"SoftwareProject", "MediaProject", etc. The "Project" object has a
"DiscussionThreads" key. I would also like the sub-classes to have
"DiscussionThreads".
Question 1: What would be the best implementation of this? Right now, I
have sub-classed DiscussionThread ("SoftwareDiscussionThread", etc.).
However, that seems like maybe a long-winded approach. Is there a good
way for each subclass to link to a single DiscussionThread table?
Question 2: If I want to create a single component for viewing the
DiscussionThreads, how can I accommodate each sub-class. I'm assuming a
combination of EOEnterpriseObject and "valueForKey". Am I on the right
track?
thanks,
Jaime
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden