[Arp] setting data on a model from a view

Chris Velevitch chris.velevitch at gmail.com
Fri Jan 13 04:37:21 PST 2006


On 1/13/06, Folkert Hielema <info at swapdepths.nl> wrote:
> isn't it so that the model should notify the view when it has changed,
> and then the view then easy says 'he model give me the updated data'
> direct manupulation from view->model is not the way to go at least i
> though it was not ;)
> haven't looked into the modelLocator though

This would be done at a generic level, in that the model would have a
mechanism [something like model.register(this)] to accept requests for
notification. The view would register itself with the model so the
model has a set of references to views that are interested in being
notified of any changes to the that model.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au



More information about the Arp mailing list