Thanks! I liked it, it's easier to close the window, particularly in Pharo where I found not super intuitive how to bring the halos over a morph. I've updated the SqueakSource adding a 'Watcher' label in the window too.
There is a lot of things which can be done with this little toy. One could think in "Watcher Environments" where you can configure watch points in your image and when a particular condition happens, the watcher shows up but without stopping execution. Although it's easier to think in implementing high-level panopticons with the idea, it has other uses like analyze feedback loops for example or to detect the value of your predictions about system behaviour.
Best regards.
Hernan
I added your code to the bug entry
On Jan 20, 2009, at 9:22 AM, Torsten Bergmann wrote:
> Hi Stef,
>
>> Now it is nicely integrated in pharo.
>
> Not yet - why not open it in a separate window instead of a plain
> morph on the desk?
> This would be more consistent with inspect it, debug it and explore
> it from the same menu.
> You can also collapse the watch window and move it easily around...
>
> see code below.
>
> Bye
> Torsten
>
> -----------------------------------------------------------------------------------------
> watchIt
>
> | result |
>
> self handleEdit:
> [result := textMorph editor compileSelectionAsBlock.
> ((result isKindOf: FakeClassPool) or: [result == #failedDoit])
> ifTrue: [^self flash]].
> (RectangleMorph new)
> layoutPolicy: TableLayout new;
> layoutInset: 3;
> listDirection: #topToBottom;
> hResizing: #shrinkWrap;
> vResizing: #shrinkWrap;
> addMorphBack: (StringMorph contents: textMorph editor selection);
> addMorphBack: ((UpdatingStringMorph on: result selector: #value)
> stepTime: 500;
> maximumWidth: nil;
> growable: true);
> color: Color white;
> borderColor: Color black;
> openInWindow
>
> --
> Psssst! Schon vom neuen GMX MultiMessenger geh��rt? Der kann`s mit
> allen: http://www.gmx.net/de/go/multimessenger
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project