Sign in Join
FPDoc Onlineexperiment

TComponentMediator.Notification procedure

Member of TComponentMediatorprotectedIn unit fpObserver

Handles component free notification events

Declaration

pascal
procedure Notification(AComponent: TComponent; Operation: TOperation)
 ; override

Arguments

AComponent

Component being removed or added

Operation

Type of notification operation

Description

The Notification method responds to component destruction events. When the view component is being destroyed, it automatically clears the component reference and triggers view change handling.

This ensures that the mediator doesn't hold dangling references to destroyed components.

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