[Newbies] moving eye in squeak

Scott Wallace madevu at pacbell.net
Thu Nov 16 10:01:56 UTC 2006


A couple of the good replies you've already received instruct you to  
browse the "MovingEyeMorph" class.

But perhaps you are wondering how you could have discovered this on  
your own, so that the next time you're curious about how something  
works, you might not need to be told a magic class name by someone else.

So try this:  bring up the halo on a moving eye (alt-click on it)  
click on the "debug menu" halo handle (wrench icon, just below the  
green handle,) choose "browse class".  This will open a browser  
pointed at the class that implements the eyes; from this, you will  
learn that it is called MovingEyeMorph.

Of course, many things you see on the screen are complex, nested  
structures, and the code underlying them might be in more than one  
place.  But if you can actually see an object on the screen and want  
to start to investigate it, you can often get at the object's code  
quickly by interacting directly with the object via its halo in this  


  -- Scott

On Nov 15, 2006, at 8:57 PM, mnrao wrote:

> i want to write code for moving eyes just like the eyes in squeak  
> logo.can
> any one helps me please.
> -- 
> View this message in context: http://www.nabble.com/moving-eye-in- 
> squeak-tf2640841.html#a7371729
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

More information about the Beginners mailing list