I have the following code. I want to override the Notify method of the base base list on this to be able to create an event on the modification of the list.
TDescendantList = class(TObjectList<TSomeclass>)
private
<...>
protected
procedure Notify(const Value: T;
Action: TCollectionNotification); override;
<...>
end;
If I put Value: T
I get an "Undeclared identifier" on T.
If is Value: TSomeClass
I get the "Declaration of 'Notify' differs from previous declaration".
Notify
is a protected method of TObjectList<T: class>
. This method does not appear on overriding list of the XE2 IDE.
That's some way to implement this or I need to use another approach as this is an proverbial brick wall?