[UI] ToolBuilder

Jason Johnson jason.johnson.081 at gmail.com
Mon Sep 10 05:47:42 UTC 2007


On 9/10/07, Colin Putney <cputney at wiresong.ca> wrote:
>
> Right. Without pluggability, you're limited to one view per model. By
> making the view-model protocol to be different for each view, the
> model can react differently to different view. In OmniBrowser I found
> that even this level of flexibility wasn't enough. I found I wanted a
> variable number of views, which pluggability couldn't accommodate. So
> I went back to the one-view-per-model pattern, with the main model
> holding a collection of sub-models and communicating through them.
> That worked out quite well... maybe there's a better way to do it, or
> a way to generalize this pattern and build it into the framework.
>
> Colin

Sorry to be a broken record again, but it looks like you're describing
the pains of having the Model directly connected to the view, instead
of a flexible framework like MVP.  I think if we switch to MVP these
kinds of problems just go away.


More information about the UI mailing list