S
shuisheng
Dear All,
I am learning the document/view design. The document stores data and
provides GUI-independent operations upon it; while the views display
and manipulate the data.
Assume I have several objects to display in the view. And I can hide
some objects in the view.
My question is that: May I need to store the hide status of an object
in the document? If I store them, when on updating the view by the
document, I can still hide those that are asked to hide before. But
accoding my understanding, the hide status is GUI-dependent, and it
will spoil the original intention of separation of document and view.
Anybody can give me some suggestion?
Thanks a lot!
Shuisheng
I am learning the document/view design. The document stores data and
provides GUI-independent operations upon it; while the views display
and manipulate the data.
Assume I have several objects to display in the view. And I can hide
some objects in the view.
My question is that: May I need to store the hide status of an object
in the document? If I store them, when on updating the view by the
document, I can still hide those that are asked to hide before. But
accoding my understanding, the hide status is GUI-dependent, and it
will spoil the original intention of separation of document and view.
Anybody can give me some suggestion?
Thanks a lot!
Shuisheng