<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi, <br>
</font></p>
<p><font size="4">I want DrGeo to be notified when the user edits a
method in a dedicated script class.</font></p>
<p><font size="4">The following code does not work:<br>
</font></p>
<pre><font size="4" color="#821a4c"> | browser |
browser _ Browser new setClass: aScriptClass selector: #compute.
<b> browser when: #annotationChanged send: #updateAllItems to: self domain.</b>
BrowserWindow new model: browser ::
buildNoSysCatMorphicWindow;
openInWorld</font></pre>
<p><font size="4">This one is working but the symbol is strange:</font></p>
<pre><font size="4"> <font color="#941253"> | browser |
browser _ Browser new setClass: aScriptClass selector: #compute.
<b> browser addDependent: self domain.</b>
BrowserWindow new model: browser ::
buildNoSysCatMorphicWindow;
openInWorld</font></font></pre>
<pre><font size="4"><font color="#941253">DrGDomain>>update: aSymbol
aSymbol == #systemCategoryRoots ifTrue: [self updateAllMathItems ]</font>
</font></pre>
<p><font size="4"><br>
</font></p>
<p><font size="4">I will prefer to use the more modern triggerEvent
alternative<br>
</font></p>
<p>Any ideas?</p>
<p>Thanks</p>
<p>Hilaire<br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>