Hum, I was pondering the problem at home and started from scratch. I don't
have the issue anymore ...


2014-04-03 18:40 GMT+02:00 Thomas Bany <mun.sys...@gmail.com>:

> Hey,
>
> I have a quick question. I'm trying to build an adapter (called
> MorphicSwitchAdapter) and a model for SimpleSwitchMorp. I based my layout
> on the ones in existing adapter (namely MorphicButtonAdapter).
>
> And I get stuck in an infinite loop during the interpretation of the
> layout of the adapter.
>
> The first lines are:
>
>     ^ {#SimpleSwitchMorph.
>             #onColor:. #(model onColor).
>             #offColor:. #(model #offColor)
>                         etc...
>
> At some point, it tries to interpret #(#model #offColor)) and a few step
> latter, it comes back to step one and tries to interpret 
> #(#MorphicSwitchAdapter
> #adapt: #model).
>
> I tried this alternative {#model. #onColor} (though this one is
> equivalent to me) and this one #model. #onColor. but to no avail.
>
> I have a feeling that the problem stems from the fact that
> PluggableButtonMorph seems to allready be an adapter which take a model
> while SimpleSwitchMorp does not.
>
> Could you throw some light as to why the interpretation fails ?
>
> Again, thanks for your help !
>
> Thomas.
>

Reply via email to