[linux-audio-dev] Re: MVC

Tim Hockin thockin at hockin.org
Mon May 12 15:34:00 UTC 2003


> >Does the model keep a list of views and call back to them?
> >for each view do
> >	view->update(me);
> >done

>        Model::changed () {
>           for each registered callback {
> 	        callback->execute ();
>           }
>        }

OK, this is (more or less) what I said.  Different actors, same concept.  I
guess the granularity for callbacks would be finer that "tell me when the
model has changed" and more like "tell me when the foo of the model has
changed"?

Tim



More information about the Linux-audio-dev mailing list