[aida] About observee

Janko Mivšek janko.mivsek at eranova.si
Wed May 30 20:17:23 CEST 2007



Stefan Schmiedl wrote:
> On Wed, 30 May 2007 00:38:08 +0200
> Damir Horvat <damir na x-si.org> wrote:
  a) What does observee actualy do?
>> in `self observee addresses do: [:each |`
>> observee does what?
> 
> You'll have multiple instances of any given view in your system, once
> the app is running and in use. Every single view has to know which
> domain object is being displayed in it. observee is this reference.

To continue a bit: as Stefan already explained, observee is a model 
object which this App is "observing" to produce its web presentation. 
That way a classical MVC style of separation of domain from presentation 
is achieved. This is also called an observer pattern - observer (an App) 
is observing an object, while this object don't knows that it is 
observed. Observee object is therefore decoupled from its observer and 
this simply programming of UI apps a lot.

Best regards
Janko


-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list