|
Re: moving eye in squeak: msg#00107lang.smalltalk.squeak.beginners
Hello, 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 manner. Cheers, -- Scott On Nov 15, 2006, at 8:57 PM, mnrao wrote:
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: moving eye in squeak, Herbert König |
|---|---|
| Next by Date: | Make 3.9 final "window" smaller, Stephen Davies |
| Previous by Thread: | Re: moving eye in squeak, Herbert König |
| Next by Thread: | Make 3.9 final "window" smaller, Stephen Davies |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |