Thanks works perfectly - I was sure there'd be a
much neater method.
Presumably though I still need to handle #children. Here's my first attempt:
onChangeContext: aContext
aContext command isView ifTrue: [
| componentContext |
componentContext := aContext structure: (aContext structure
lookupPath: '/system/components/cloud').
component := componentContext command asComponent
]
children
^ Array with: component
Is there a neater way of implementing #children ?
That doesn't quite work correctly, because #asComponent returns a new
component each time.
Better use #componentsIn: on the structure you are going to render.
This answers the list of child components in a given context.
Lukas
--
Lukas Renggli
www.lukas-renggli.ch