The View and the Model


#1

In this chapter we created the Line model and then used the view to manipulate the model by adding the begin and end points. From the Stanford lectures I thought I learned, maybe not, that the view should not know anything about the model. However, in this lesson not only does the view know about the model it actually edits it.

Ok, so the question is is this OK? Or is the only way of doing this? I thought originally that the controller would have to play a more integral role between the view and the model.

Thanks for any comments.

Jeff