[squeak-dev] Plugable Morphs

Eliot Miranda eliot.miranda at gmail.com
Wed Aug 12 23:50:57 UTC 2009


On Wed, Aug 12, 2009 at 4:16 PM, Gary Dunn <osp at aloha.com> wrote:

> What makes a plugable morph plugable? In terms of building apps, what is
> the significance of being plugable? Do plugable morphs work especially well
> as a team?


Pluggable refers to the parameterisation of some MVC or Morphic component's
communication to the model so that the selectors it uses to set/get state
are parameters and internally the component uses perform: et al to apply the
selectors to the model.  e.g. look at implementors and senders of #getText:
in Monticello and you'll see PluggableTextSpecs (from which
PluggableTextMorphPlus instances are built) being created with text
accessors such as #verrsionName #logMessage & plain old #text.  In olden
days one used to use subclasses that would implement state accessors with
direct message sends of the relevant selectors.  The pluggable style cut
down on a proliferation of classes.

best
Eliot

>
>
> --
> Gary Dunn, Honolulu
> osp at aloha.com
> http://openslate.net/
> http://e9erust.blogspot.com/
> Sent from a Newton 2100 via Mail V
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090812/9e588434/attachment.htm


More information about the Squeak-dev mailing list