I have a control tree in my GUI (with a natural set of GUI / platform functions for processing nodes).
I have a data model with my own set of nodes, children, properties, etc.
I want the tree to display the representation of the model, allow me to send messages to nodes within the model, and I was told to redraw itself when the model changes.
But I don’t want the GUI code to need the details of the model data types, and I don’t want to pollute the model by linking it to GUI classes.
I can’t understand how the controller should do this and what functions should it provide?
(this is in C ++, but it doesn't matter)
Oo newbie
source
share