Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Delphi & interfaces

ivo jonkerivo jonker Member Posts: 13
[b][red]This message was edited by ivo jonker at 2007-3-30 7:58:31[/red][/b][hr]
Edit:

In short - i'm trying to implement a model view controller in delphi..

Now i got stuck when using interfaces... in short this is what i'm trying to do.

procedure TdataModel.notifyObservers;
var x:integer;
observer:iObserver ;
begin
for x:=0 to Self.setOfObservers.Count-1 do
begin
observer:=setOfObservers.items[x]; <----how to do this :)
observer.update();
end;
end;

Now, i've never used interfaces.. so i might be completely wrong on the declaration or something :)




Sign In or Register to comment.