[Cuis-dev] What happened to the changed/update cycle?

Gerald Klix cuis.01 at klix.ch
Sun May 1 13:14:00 PDT 2022


Good Night Stephen,

AFAIK the state of affairs concerning the change/update cycle is a bit complicated.
I will try to clarify things tomorrow.; please bear with me.

Best Regards,
Gerald
On May 1 2022, at 8:57 pm, stephen--- via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
>
> Hi folks,
>
> In the original MVC as described in the BlueBook, the changed/update cycle that is the core of MVC (and any other observer pattern implementation in Smalltalk) was the message sequence:
>
> Any object (a model) sends
> self changed
>
> which calls, by default
> self changed: aToken
>
> which calls, by default
> self changed: aToken with: anArgument
>
> which calls, by default
> self changed: aToken with: anArgument from: aSender
>
> which was implemented as:
> self dependents do:
> [ :dep |
> dep update: aToken with: anArgument from: aSender]
>
> The dependents then implement update:with:from: or its simpler variants.
>
>
> In Squeak and descendants (I believe) this is rewritten using triggerEvent: which is less flexible and not compatible.
>
> Does anyone else notice this or have apps that use the old Observer pattern code?
>
> Stephen Pope
>
>
> --
>
> Stephen Travis Pope Ojai, California, USA
> http://HeavenEverywhere.com http://FASTLabInc.com
> https://vimeo.com/user19434036/videos http://heaveneverywhere.com/Reflections
>
> --
>
>
>
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220501/c8c52044/attachment.htm>


More information about the Cuis-dev mailing list