Yuriy Tymchuk wrote:
roassal views have a nice feature in glamour - a new glamour pane is opened when an
entity is clicked. This is being set up by:
aView raw allElementsDo: [:each |
each on: ROMouseClick do: [:event | self selection: each model ]] ].
I’d like to know if there is a possibility to do it yourself, because I generate some
nodes dynamically when view is already displayed.
Moose-dev mailing list
A bit of a hack and only a quick pass at the concept, but one way to do
this might be...
ROView subclass: YourROView
super allElementsDo: aBlock.
allElementsBlock := aBlock.
super add: element.
allElementsBlock ifNotNil: [ allElementsBlock value: element ].
This requires Glamour to be able to use YourROView instead of
ROMondrianViewBuilder. This facility is provided by loading the
following packages attached to comment #9 of Issue 900 
(Note you probably only need to read down from comment #7)
btw, I'm not sure #newViewBlock is the best method name. Any ideas for