Re: [Gambas-user] a observer in a form can't catch an event from other class

2011-07-30 Thread Fabián Flores Vadell
2011/7/2 Fabien Bodard : >> ¿Some suggestion? ¿How would be possible implement the MVC pattern in >> Gambas? (The controller is the part that I'm not figured how to do) >> > > hum well in fact the engine will return an array structure for the > game plate and users status... then the viewer deal wi

Re: [Gambas-user] a observer in a form can't catch an event from other class

2011-07-02 Thread Fabien Bodard
2011/7/1 Fabián Flores Vadell : > 2011/6/29 Benoît Minisini : >> >> Can you make a little project for me so that I can test exactly your code? >> >> -- >> Benoît Minisini > > Thanks Benoît, but that's unnecesary. I quickly found the error in my > code. By the way, I thought that Gambas events could

Re: [Gambas-user] a observer in a form can't catch an event from other class

2011-07-01 Thread Fabián Flores Vadell
2011/6/29 Benoît Minisini : > > Can you make a little project for me so that I can test exactly your code? > > -- > Benoît Minisini Thanks Benoît, but that's unnecesary. I quickly found the error in my code. By the way, I thought that Gambas events could be useful to decoupling the logic of my pro

Re: [Gambas-user] a observer in a form can't catch an event from other class

2011-06-29 Thread Benoît Minisini
> misprint: > > > > 2011/6/29 Fabián Flores Vadell : > > 'Dim aux As ClassA = Object.Class(GameBoard).AutoCreate() > 'Dim aux As ClassA = Object.Class(GameBoard).instance > > (aux is NULL too, obviously) > Can you make a little project for me so that I can test exactly your code? -- Benoît

Re: [Gambas-user] a observer in a form can't catch an event from other class

2011-06-29 Thread Fabián Flores Vadell
misprint: 2011/6/29 Fabián Flores Vadell : 'Dim aux As ClassA = Object.Class(GameBoard).AutoCreate() 'Dim aux As ClassA = Object.Class(GameBoard).instance (aux is NULL too, obviously) >  $obsClassA = New Observer(Object.Class(ClassA).instance) As "obsClassA" > > > and > > >  $obsClassA = New

[Gambas-user] a observer in a form can't catch an event from other class

2011-06-29 Thread Fabián Flores Vadell
Hi everybody. I have this: 'Class A: Singleton Create Static Public Sub _new() If Object.Class(Me).Count > 1 Then Error.Raise("Just use my class name to get access to my members") End Event Change Static Public Sub Main() Me.doSomething End Public Sub doSomething() 'Do something