event handling

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

event handling

sdes29
Hi,

First, I have to say that I dont do smalltalk every day :-) !

Here is my problem

In one class I do: "self signalEvent:#myEvent".
When a register for this event in the same class, I am notified and everything is fine.
But when I regsiter for this event in another class, I dont receive the event.

Here is how I register for the event :

             self abtWhenPrimitive: #myEvent
        perform:
        (DirectedMessage new
        receiver: self;
        selector: #aMessage;
        arguments: nil).

I thought tha signalEvent was broadcast and not only local to the class ??? What am I doing wrong ?

In case it's worthing something, we have VisualAge smalltalk V6.0.

Thank's in advance for any help.