Help needed for a spying object

ducasse stephane ducasse at iam.unibe.ch
Thu Oct 4 11:57:55 UTC 2001


> First problem:
> 
> 
> |t |
> t := OrderedCollection new.
> Spy on: t. 
> t add: 3.
> t add: 5.
> t 
> 
> When I execute the following code everythign works
> Then when I open an inspector on t and send messages there are not
> captured. I don't understand why. I alreadyplayed a lot with become: and
> nasty stuff in VW but here I'm stuck.

I was blind, the inspect is forwarded simply to the collecttion ;)

> 
> Second problem:
> 
> I wanted to have a spy on a morph. Crazy me....It was nearly working on
> BoucingAtomsMorph but I tried on something simpler liek
> RectangleMorph or TextMorph but I got a lot of strange errors or nealry
> damage my system
> 
> 
> testDamagingThe28System
> 
> |t |
> t := TextMorph new.
> t openInWorld.
> Spy on: t. 
> 
> 
> testWithEventErrorin28
> 
> |t |
> t := RectangleMorph new.
> t openInWorld.
> Spy on: t. 
> 
> Have you any idea or suggestions?
> 
> Stef
> 
> 
> 
> 
> 
> 
> 
> 





More information about the Squeak-dev mailing list