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

Re: subclassing WODisplayGroup


  • Subject: Re: subclassing WODisplayGroup
  • From: George Domurot <email@hidden>
  • Date: Fri, 2 Jan 2004 10:24:33 -0500

Tom:

If you cast the variable back to a WODisplayGroup, you shouldn't have
any problem with WOBuilder.

     protected MyWODisplayGroup displayGroup;

     public WODisplayGroup displayGroup(){
         return (WODisplayGroup)displayGroup;
     }

On Jan 1, 2004, at 12:11 PM, Tom Woteki wrote:

> 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.
_______________________________________________
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: Tom Woteki <email@hidden>
References: 
 >subclassing WODisplayGroup (From: Tom Woteki <email@hidden>)

  • Prev by Date: Re: Advice on dynamic graphics with WO
  • Next by Date: Re: Advice on dynamic graphics with WO
  • Previous by thread: subclassing WODisplayGroup
  • Next by thread: Re: subclassing WODisplayGroup
  • Index(es):
    • Date
    • Thread