Hi Hilaire,
you can track the system announcements MethodModified and MethodAdded;
they are browser independent (but then you need to filter to see it
relates to the method you are interested in).
SystemAnnouncer uniqueInstance weak on: MethodAdded send: #update: to:
self domain.
Thierry
Le 14/05/2014 14:37, Hilaire Fernandes a écrit :
Now I wonder how can I get noticed when code was edited and compiled
from a Nautilus window.
Previously I was doing:
browser addDependent: self domain.
and DrGeo received notice in the domain objet through the #update: method.
It does not work anymore.
How to do it now?
Thanks
Hilaire
Le 14/05/2014 11:45, Hilaire Fernandes a écrit :
Hi,
In DrGeo, I add this code snippet to:
browser := Browser
newOnClass: DrGeoUserScripts
selector: mathItem script.
browser addDependent: self domain.
browser codeTextMorph owner owner extent: 450@350.
browser topView setProperty: #morphicLayerNumber toValue: 5.
1. open a minimal browser
2. set a dependency so DrGeo is noticed when the user edited and compile
its script (so Drgeo can update the sketch)
3. rescale the browser so the user can still see his sketch
4. set the minimal browser in a permanent top position.
As Browser is broken and not gonna be fixed, I need to redo the same
with Nautilus, but this one is a big beast. Any tips how to do it?
Thansk
Hilaire
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95