[Seaside-dev] Re: Altitude

Julian Fitzell jfitzell at gmail.com
Thu Nov 6 23:43:01 UTC 2008


On Thu, Nov 6, 2008 at 7:39 PM, Avi Bryant <avi at dabbledb.com> wrote:
> On Thu, Nov 6, 2008 at 2:03 AM, Julian Fitzell <julian at fitzell.ca> wrote:
>
>> We have, though, for example, WAWindowDecoration which
>> WAPlugin uses to display any component as a window with a close X in
>> the top corner. The components don't really need to know they're
>> wrapped there. In fact, it occurs to me that the WindowDecoration
>> could actually be a kind of delegation in which case it wouldn't even
>> need to make the component answer nil, it could just remove itself.
>
> A delegation, or just a wrapper component?  In a case like that where
> the window really has a lot of control, vs. the component itself
> choosing when to answer, I feel like
>
> self call: (WAWindow on: myComponent)
>
> is maybe a better representation?

Hm... well I don't know if it's better, necessarily. But I agree it works. :)

I dunno... I admit I don't seem to make a very good argument for all
components needing decorations other than that it "could" be useful.
I'm a bit ambivalent about the whole thing. Since we have a list full
of people here, can anybody else come up with good use cases here?

Keep in mind we're not discussing getting rid of decorations
altogether here; just moving the decoration functionality down to a
subclass of component.

Julian


More information about the seaside-dev mailing list