No, this is not strange. The view-creation code is completely separate from the model itself, even if it lives in the model class. The view creation code is never called from within the model and in fact could and should be packaged with the view. There are no references from the model to the view, multiple views can concurrently co-exist on the same model, and we can even support different view kinds at once (morphic, toolbuilder, seaside, ...) by creating different UI creation methods.
Lukas On 5 September 2011 08:24, Alain Plantec <[email protected]> wrote: > >> right now the separation is bogus because to me a model should not refer >> to methods that cretae the UI. :) >> anyway. we will see that later. > > yes, it is a bit strange to be allowed to directly manipulate a view element > from them model. > Alain > > > -- Lukas Renggli www.lukas-renggli.ch
