Hello,

I was wondering what more experienced users than myself thought of the idea
of an explicit Spec "connection point" to a domain model object similar to
Dolphin's "showOn:" method, like:

CounterApp showOn: counter.

This would perhaps trigger something like Dolphin's Presenter>>model:
message (although I've always found the use of "model" confusing when there
are so many "models" involved.) after the widgets had been created:

ComposableModel>>initializeBindings: anObject

In many cases, if your domain model uses ValueHolders as well (like Spec
does), making a connection could just mean replacing the Spec ValueHolder
with your domain ValueHolder so changes to the domain model would
automatically propagate to the UI presentation without providing explicit
code in ComposableModel>>initializePresenter.

However, since I am still trying to understand and learn Spec, it's quite
possible I am missing some key point and there are reasons not to explore
this line of thinking!

Thank you,

Rob

Reply via email to