[Q] dependency in morph
Stephane Ducasse
ducasse at iam.unibe.ch
Fri Sep 6 17:35:32 UTC 2002
>
> I would like to propagate change between two object.
> I used the old changed:, update mechanism
> but I ended up writing
>
> Myclass>>update: aSymbol
>
> aSumbol =#zork
> ifTrue: [self m1. ^ self]
> aSymbol = #zarf
> ifTrue: [self m2. ^self]
>
>
> Is there a better in morph to do the same
>
> I was looking for something like
>
>
> self when: methodX perform: #m2 on: aMyClass
>
> Is there something like that because this would be better for my book
> but I could not find it.
>
> Stef
>
Dr. Stéphane DUCASSE (ducasse at iam.unibe.ch)
http://www.iam.unibe.ch/~ducasse/
"if you knew today was your last day on earth, what would you do
different? ... especially if, by doing something different, today
might not be your last day on earth" Calvin&Hobbes
More information about the Squeak-dev
mailing list
|