Creates an observer hook with a specified sender object
Source position: fpobserver.pp line 39
public constructor TObservedHook.CreateSender( |
ASender: TObject |
); |
ASender |
|
Object that will be used as sender in notifications |
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.