On 28/08/12 08:50, michael.vancann...@wisa.be wrote:
The first:

Procedure TmyObject.SomethingChanged;

Var
Rec : TMyOperationInfo; // Contains custom information about your
operation.

begin
Rec.XYZ:=MoreInfo; // Set up as needed.
FPONotifyObservers(Self,ooCustom,@Rec);
end;


Correct, and this is how I use it in tiOPF too — which has a similar observer implementation.



It does not need one. The sender has changed, not an item in a list.
The 'Item'-s are for when sender is a list, and an item is added to the
list.

Ah yes, I understand your thinking now. Scrap my earlier comment on this point. :)

Regards,
  - Graeme -




_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to