Hi, is there any explanation how SpecInterpreter works? Because in MorphicRoassalAdapter class you have: defaultSpec ^ #(RTViewForSpec whenLastEventChangedDo: #(model whenLastEventChangedBlock)) and I cannot find out how this symbol magic is working. Uko
the SpecInterpreter turns this into RTViewForSpec new whenLastEventChangedDo: model whenLastEventChangedBlock where model refers to the instance being currently build Ben On 03 Jul 2014, at 12:37, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi,
is there any explanation how SpecInterpreter works?
Because in MorphicRoassalAdapter class you have:
defaultSpec
^ #(RTViewForSpec whenLastEventChangedDo: #(model whenLastEventChangedBlock))
and I cannot find out how this symbol magic is working.
Uko
And you can also find some explanations here: http://spec.st/docs/interpreter/#collect_the_data Ben On 03 Jul 2014, at 12:37, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi,
is there any explanation how SpecInterpreter works?
Because in MorphicRoassalAdapter class you have:
defaultSpec
^ #(RTViewForSpec whenLastEventChangedDo: #(model whenLastEventChangedBlock))
and I cannot find out how this symbol magic is working.
Uko
Awesome. Iâve missed that somehow. While Iâve got a reply from you, can I ask one specific question? As Roassalâs view is the main handle to control the visualisation, why canât Roassal model use a View as a main property, and we have to use a script? The thing is that if you want to change something in the view on the go, itâs quite hard. Uko On 03 Jul 2014, at 12:42, Benjamin <Benjamin.VanRyseghem.Pharo@gmail.com> wrote:
And you can also find some explanations here: http://spec.st/docs/interpreter/#collect_the_data
Ben
On 03 Jul 2014, at 12:37, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi,
is there any explanation how SpecInterpreter works?
Because in MorphicRoassalAdapter class you have:
defaultSpec
^ #(RTViewForSpec whenLastEventChangedDo: #(model whenLastEventChangedBlock))
and I cannot find out how this symbol magic is working.
Uko
Not particular reason. It was coded this way because it was what we needed back at this time :) Please feel free to improve it Ben On 03 Jul 2014, at 12:52, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Awesome. Iâve missed that somehow.
While Iâve got a reply from you, can I ask one specific question?
As Roassalâs view is the main handle to control the visualisation, why canât Roassal model use a View as a main property, and we have to use a script? The thing is that if you want to change something in the view on the go, itâs quite hard.
Uko
On 03 Jul 2014, at 12:42, Benjamin <Benjamin.VanRyseghem.Pharo@gmail.com> wrote:
And you can also find some explanations here: http://spec.st/docs/interpreter/#collect_the_data
Ben
On 03 Jul 2014, at 12:37, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi,
is there any explanation how SpecInterpreter works?
Because in MorphicRoassalAdapter class you have:
defaultSpec
^ #(RTViewForSpec whenLastEventChangedDo: #(model whenLastEventChangedBlock))
and I cannot find out how this symbol magic is working.
Uko
participants (2)
-
Benjamin -
Yuriy Tymchuk