Sign in Join
FPDoc Onlineexperiment

IFPObserved interface

In unit Classes

Interface implemented by an object that can be observed.

Declaration

pascal
IFPObserved = class

Description

IFPObserved is an interface which can be implemented in objects that must be observable. Objects that wish to observe the object can register themselves with the FPOAttachObserver call, and must be detached using the FPODetachObserver call.

This interface is not reference counted, so care must be taken that the ooFree message is sent with FPONotifyObservers when the object is freed.

See also

Methods

FPOAttachObserverAttach a new observer to the object.
FPODetachObserverRemove an observer from the list of observers.
FPONotifyObserversNotify all observers.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.