Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C++ Programming

help on document/view design.


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

It's very difficult to understand you but if I get your meaning you may
be served by using several views governed by a mediator.
On Feb 16, 2:32 pm, "shuisheng" <shuishen@yahoo.com> wrote:

> 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?

I don't see any need to do this. All the GUI toolkits I've worked with
support some sort of hide() operation for widgets.

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.

It sure would violate the document/view separation to store view
information within the document.

> Anybody can give me some suggestion?

> Thanks a lot!

> Shuisheng

HTH,
Paul Davis
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc