Question About Classic MVC
Posted
by kernix
on Stack Overflow
See other posts from Stack Overflow
or by kernix
Published on 2010-04-29T20:22:25Z
Indexed on
2010/04/29
20:27 UTC
Read the original article
Hit count: 113
Hello,
In classic MVC the model notifies the view about changes made on it. In C# this means I have to subclass the View I'm interested in and in the subclassed class register to the model's event. For example, if I were to implement MVC using C# and Winforms, I had to subclass TextBox class and then register inside the MyTextBox's constructor for the model events. Am I correct? How was this issued in Smalltalk? Does one also need to subclass every View in order to register the model's events, or is there some way to dynamically add events to the views on the fly?
Thanks
© Stack Overflow or respective owner