Re: [linux-audio-dev] Re: MVC

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Re: MVC
From: Paul Davis (paul_AT_linuxaudiosystems.com)
Date: Sun May 11 2003 - 05:50:00 EEST


>> instant violation of the core of MVC. Models don't know about
>> Views.=20
>
>In what sense? They have to know the interface. You mean they don't have a=
>=20
>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.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun May 11 2003 - 05:58:12 EEST