Re: Homework question relating to docview
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Jul 2007 14:45:13 GMT
"David Wilkinson" <no-reply@xxxxxxxxxxxx> wrote in message
news:uyPZa0IxHHA.3652@xxxxxxxxxxxxxxxxxxxxxxx
David:
I said that: if the data is persisted by the application, the handler
should be in the application.
But you are right: if there are multiple views requiring the information,
the information should be in the document, and the handler for setting it
should be in the document.
I guess I feel that wherever the data is located, that class should have
the handler for setting it. And if a class is responsible for persisting
the data, it should have the data as a member.
I agree with everything but the last paragraph. The document may have a
data member (seen by multiple views), but each view may have unique ways of
setting the data member. Like the HTML editor in Visual Studio, you can
change the HTML document in both Code and Design views. The HTML is stored
in the document, but the views handle the changing of it in different ways:
the Code view allows me to type tags, etc., and the Design View lets me drag
and drop from a toolbox for various HTML elements. It isn't the document
handling these changes. Or do you mean something different?
-- David
.
- Follow-Ups:
- Re: Homework question relating to docview
- From: David Wilkinson
- Re: Homework question relating to docview
- References:
- Homework question relating to docview
- From: Eric Lilja
- Re: Homework question relating to docview
- From: Jonathan Wood
- Re: Homework question relating to docview
- From: Eric Lilja
- Re: Homework question relating to docview
- From: Joseph M . Newcomer
- Re: Homework question relating to docview
- From: Alexander Grigoriev
- Re: Homework question relating to docview
- From: Joseph M . Newcomer
- Re: Homework question relating to docview
- From: David Wilkinson
- Re: Homework question relating to docview
- From: David Ching
- Re: Homework question relating to docview
- From: David Wilkinson
- Homework question relating to docview
- Prev by Date: Re: Something Cool About Vista
- Next by Date: Re: Something Cool About Vista
- Previous by thread: Re: Homework question relating to docview
- Next by thread: Re: Homework question relating to docview
- Index(es):
Relevant Pages
|