[Q] on when:send:to:
Ingo Hohmann
ingo at 2b1.de
Tue May 27 21:02:10 UTC 2003
OK, this ia the last question for today, I promise!
I found the reference to when:send:to: on the SWiki, now I tried it with
two classes ...
class RecieveEvent:
initalize
self when: #variableChanged send: #variableChanged to: self
variableChanged
Transcript show: 'variabel has changed'
class TriggerEvent:
variable: aVal
variable _ aVal.
self triggerEvent: #variableChanged.
^ variable
And in the WorkSpace:
t1 _ RecieveEvent new.
t2 _ TriggerEvent new.
t2 variable: 11.
Shouldn't this print the message? I searched for when:send:for: senders
and only found about 7 in my image (3.5) am I missing something?
Kind regards,
Ingo
And thanks for all the answers!
More information about the Squeak-dev
mailing list
|