[linux-audio-dev] Re: MVC
paul at linuxaudiosystems.com
Sat May 10 22:59:00 UTC 2003
>> instant violation of the core of MVC. Models don't know about
>In what sense? They have to know the interface. You mean they don't have a=
>pointer to the views?
no. they have no idea who the views are, how many there are, nothing.
otherwise, adding new views means changing the model. ditto for controllers.
if you're used to Qt, you're used to using signals/slots for
anonymous communication between objects. Qt's version of this is not
quite as clean as libsigc++, but they are both semantically
equivalent. when the model raises a signal, it has no idea which slots
are connected to it. there might be none, or 10,000 ....
thats the essence of MVC.
More information about the Linux-audio-dev