[Seaside] WADecoration and subcomponents
Leandro Perez
leandromperez at gmail.com
Mon Dec 22 17:01:48 UTC 2008
Thanks Julian,
Yeah, that kind of sucks in 2.8. I think in 2.9 we've got it so that
> Decorations can have #children.
great
> In 2.8, you'll need to implement #nextPresentersDo: on your
> Decoration. Take a look at WADelegation or WAComponent's
> implementation for inspiration.
>
I wrote this:
MyDecoration>>nextPresentersDo: aBlock
super nextPresentersDo: aBlock.
self childrenDo: [:ea | ea decorationChainDo: aBlock]
How does it sound?
It seems to work, but perhaps I'm missing something. I honestly don't know
the whole intent of nextPresentersDo: so I tried a few things and this one
appears to work just fine.
Greetings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20081222/7cfe1bac/attachment.htm
More information about the seaside
mailing list