TObservedHook.CreateSender constructor
Creates an observer hook with a specified sender object
Declaration
constructor CreateSender(ASender: TObject)Arguments
ASender | Object that will be used as sender in notifications |
Description
The CreateSender constructor initializes the observer hook with a specific sender object that will be used in all notifications.
If ASender is nil, the hook itself becomes the default sender.
The sender object is important because observers receive it as a parameter in their notification callbacks, allowing them to identify the source of the notification.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
