[Gambas-user] How to stop an Observer?
tobiasboe1 at ...20...
Mon Jul 11 22:33:14 CEST 2011
On 11.07.2011 20:47, tobias wrote:
> i wonder how to stop an observer from raising events? my code
> demonstrative code looks like this:
> PRIVATE hObs AS Observer
> PUBLIC SUB ObserveSubject(hSubject AS TextBox)
> IF hObs THEN
> hObs = NEW Observer(hSubject)
> PUBLIC SUB ReleaseSubject()
> i think, i'm missing something very basic here...
oh, i just noticed the note in the online doc which is not present in my
The observer object is attached to the observed object, and is freed
only when the observed object is freed too.
seems that there is no possibility without destroying the control. is
there a way to copy an entire object, so i can create a new TextBox with
the same property values?
More information about the User