• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subclassing and Reusable Components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Search results in an out of memory exception
  • Next by Date: Re: Subclassing and Reusable Components
  • Previous by thread: Re: WO & Lucene
  • Next by thread: Re: Subclassing and Reusable Components
  • Index(es):
    • Date
    • Thread