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.sysdev@gmail.com>:
Again, thanks for your help !Could you throw some light as to why the interpretation fails ?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).��� ��� ��� ��� ��� ��� etc...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)
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.
Thomas.