Login  Register

Re: Question on Spec

Posted by Mark Rizun on Aug 06, 2014; 9:30am
URL: https://forum.world.st/Question-on-Spec-tp4771958p4771969.html

Yes it is invoked(I mean initializeWidgets in AbstractPanel) if I do: RewriteTool new.
And yes, I needed more functionality for TextModel


2014-08-06 11:26 GMT+02:00 Benjamin <[hidden email]>:
On 06 Aug 2014, at 11:16, Mark Rizun <[hidden email]> wrote:

Actually in each:)
I have a class AbstractPanel and there is:

initializeWidgets
self instantiateModels: #(#templateText #MyTextModel).
templateText
dragEnabled;
text: self demoText;
ast: (RBParser parseRewriteExpression: self demoText);
aboutToStyle: true;
model: self;
menuOptionsSelector: #menuActions

This should then be initialised :S
Could you try to put a `self halt` here 
to see if you hit it when you initialise
your main model?


Ben

P.S.: why did you need to subclass TextModel?
Is there something missing you wanted to have?