• 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 WODisplayGroup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

subclassing WODisplayGroup


  • Subject: subclassing WODisplayGroup
  • From: Tom Woteki <email@hidden>
  • Date: Thu, 1 Jan 2004 12:11:58 -0500

I would like to be able to subclass WODisplayGroup such that the
"Display Group Options" configuration panel in WOBuilder is still
available for any component that uses my subclass and such that the
framework automatically initializes an instance of my subclass the way
it can a WODisplayGroup.

I've tried editing the .woo file for components as follows:

{
     "WebObjects Release" = "WebObjects 5.0";
     encoding = NSMacOSRomanStringEncoding;
     variables = {
         aDisplayGroup = {
             class = MyWODisplayGroupSubclass; // or
my.package.name.MyWODisplayGroupSubclass with and without quote marks
			etc......
};};}

but nothing seems to work.

In addition to WOBuilder not being able to configure my display group,
when the using WOComponent goes to set the variable aDisplayGroup
above, I get a class exception error. WO expects to see an instance of
my subclass but it is given an instance of WODisplayGroup, the parent
class, instead. In other words, the "class" key in the .woo file seems
to be ineffectual.

Is what I am attempting possible, and if so how to do it?

Thanks very much,
Tom
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: subclassing WODisplayGroup
      • From: George Domurot <email@hidden>
  • Prev by Date: Re: Advice on dynamic graphics with WO
  • Next by Date: Re: can I use fetch spec to filter an array?
  • Previous by thread: Re: Advice on dynamic graphics with WO
  • Next by thread: Re: subclassing WODisplayGroup
  • Index(es):
    • Date
    • Thread