initializeWidgets
self
instantiateModels: #(#sourcePanel #SourcePanel #resultPanel #ResultPanel
#matchPanel #MatchPanel #transformPanel #TransformPanel #acceptButton
#ButtonModel).


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

> I will say it depends how you initialise your objects ;)
>
> The good way to do it is in the method `initializeWidgets`
>
> Could you post it so I can tell you a bit more?
>
> Ben
>
> On 06 Aug 2014, at 10:56, Mark Rizun <mri...@gmail.com> wrote:
>
> Hi,
>
> I'm writing tests for RewriteTool which I build with spec. I have a
> TextModel in this tool.
> When I do: /RewriteTool new openWithSpec/, /TextModel sourceTextArea/ is
> initialized,
> however in tests I don't want to open a tool, just want to initialize it.
> So
> I wrote /RewriteTool new/.
> Everything is initialized, but/ TextModel sourceTextArea/ is /nil/. And I
> don't know why.
> Any thoughts?
>
> Best,
> Mark
>
>
>
> --
> View this message in context:
> http://forum.world.st/Question-on-Spec-tp4771958.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>
>

Reply via email to