If you need it the other way around, then instead of calling it in the layout,
there is a method on adapter named #buildWidget (or something close)
which is the perfect place for this :)
Ben
On 04 Apr 2014, at 01:53, Thomas Bany wrote:
> Okey so I looked deeper into the interpreter and found t
Okey so I looked deeper into the interpreter and found that the receiver of
the next call is the returned value of the previous. I'm pretty sure it
explains the infinite loop I was encountering.
It also made it problematic to register the morph to the anouncement of the
adapter, since #addDependen
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 :
> Hey,
>
> I have a quick question. I'm trying to build an adapter (called
> MorphicSwitchAdapter) and a model for SimpleSwitchMorp. I based my layout
>
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.
On 03 Apr 2014, at 12:50, Thomas Bany wrote:
>
> I will defenitly look into that. The "rebuild" may be missleading, is it also
> called at first building ?
That’s your own ,method, call it as/when you want
> Well, I can't even manage to tweak it through hardcoding stuff on the adapter
> :p
>
> The usual solution is to have a method looking like this on instance side
>
> rebuildMyLayout
>
> | layout |
> layout := self buildStateDependentLayout.
> self buildWithLayout: layout.
>
> buildStateDependentLayout
> ^ SpecLayout composed
> etc...
>
I will defenitly look into that. The "rebui
On 02 Apr 2014, at 12:10, Thomas Bany wrote:
> Hi !
>
> First, I apologyse for the wall of text.
>
> I'm trying my hands at Spec and I have few questions:
> How can I implement an instance-dependent layout ?
The usual solution is to have a method looking like this on instance side
rebuildMyLay
Hi !
First, I apologyse for the wall of text.
I'm trying my hands at Spec and I have few questions:
- How can I implement an instance-dependent layout ?
Regarding the layout method lookup, the documentation states that it
"starts on instance side, which allows a UI to have a more specific la