subclassing WODisplayGroup
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.