[Cuis-dev] Get notified when method edited in Browser

Hilaire Fernandes hilaire at drgeo.eu
Thu Apr 7 07:54:15 PDT 2022


Hi,

I want DrGeo to be notified when the user edits a method in a dedicated 
script class.

The following code does not work:

     |  browser |     browser _ Browser new setClass: aScriptClass 
selector: #compute. *    browser when: #annotationChanged send: 
#updateAllItems to: self domain.*     BrowserWindow new model: browser 
::         buildNoSysCatMorphicWindow;         openInWorld

This one is working but the symbol is strange:

|  browser |     browser _ Browser new setClass: aScriptClass selector: 
#compute. *    browser addDependent: self domain.*     BrowserWindow new 
model: browser ::         buildNoSysCatMorphicWindow;         openInWorld

DrGDomain>>update: aSymbol     aSymbol == #systemCategoryRoots ifTrue: 
[self updateAllMathItems ]


I will prefer to use the more modern triggerEvent alternative

Any ideas?

Thanks

Hilaire

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220407/d4a6543b/attachment.htm>


More information about the Cuis-dev mailing list