class: GDBApplication
authorClaus Gittinger <cg@exept.de>
Mon, 15 Aug 2016 11:09:08 +0200
changeset 4030 fd37ac079cf0
parent 4028 5cade94eea34
child 4031 3077e1dbb704
class: GDBApplication changed: #executionStateViewSpec
extensions.st
--- a/extensions.st	Fri Aug 12 18:15:12 2016 +0200
+++ b/extensions.st	Mon Aug 15 11:09:08 2016 +0200
@@ -908,22 +908,23 @@
 
 onChangeSend:aSelector to:anObject
     "arrange for aSelector to be sent to anObject whenever the receiver
-     changes."
+     changes.
+     Use retractInterestsFor: in case you are no longer interested"
 
     "/ for now, use an interestConverter, which is somewhat less efficient.
     "/ In the future, a more intelligent DependencyCollection class is planned for
 
     ((self interests ? #())
-	contains:[:anInterest |
-	    (anInterest isInterestConverter)
-	    and:[ anInterest destination == anObject
-	    and:[ anInterest selector == aSelector]]
-	])
-	    ifTrue:[^ self].
+        contains:[:anInterest |
+            (anInterest isInterestConverter)
+            and:[ anInterest destination == anObject
+            and:[ anInterest selector == aSelector]]
+        ])
+            ifTrue:[^ self].
 
     self addInterest:(InterestConverter
-			  destination:anObject
-			  selector:aSelector)
+                          destination:anObject
+                          selector:aSelector)
 
     "
      |p b|