[Gambas-user] How to stop an Observer?

tobias tobiasboe1 at ...20...
Mon Jul 11 20:47:18 CEST 2011


hi,

i wonder how to stop an observer from raising events? my code 
demonstrative code looks like this:

(gambas2)

PRIVATE hObs AS Observer

PUBLIC SUB ObserveSubject(hSubject AS TextBox)
   IF hObs THEN
     ReleaseSubject()
   ENDIF
   hObs = NEW Observer(hSubject)
END

PUBLIC SUB ReleaseSubject()
   ???
END

i think, i'm missing something very basic here...

regards,
tobi




More information about the User mailing list