Okey, I hadn't read your question carefully :)

Looking at TextModel>>sourceTextArea, it returns the widget of the model,
meaning the adapter to PluggableTextMorph. The adapter (and the Morph
behind) is instantiated during the building (called in openWithSpec) of the
model, not its initialization.

In short, when you call RewriteTool new, you have a fully initialized
description of the GUI, but you don't have the GUI.

Thomas.


2014-08-06 11:45 GMT+02:00 Benjamin <benjamin.vanryseghem.ph...@gmail.com>:

> On 06 Aug 2014, at 11:30, Mark Rizun <mri...@gmail.com> wrote:
>
> > Yes it is invoked(I mean initializeWidgets in AbstractPanel) if I do:
> RewriteTool new.
>
> If you put the halt after
> `self instantiateModels: #(#templateText #MyTextModel).`
> can you confirm that templateText is not nil?
>
> > And yes, I needed more functionality for TextModel
>
> Which ones? :)
> Maybe they deserve to be pushed into TextModel
>
> Ben
>

Reply via email to