Accessing Morphs as objects
Geza Lakner MD
geza67 at freestart.hu
Fri Jun 7 20:48:23 UTC 2002
Dear Richard !
> Here's a detailed example that works in Squeak 3.0.1.
> 6. Now you can do things like
> star3516 heading: 10
On the above example am I able to rename star3516 morph and use a more
straightforward name for it?
Is there a way for morphs saved in a file, upon reloading to associate
them with global names?
> "inspect instances" I get an inspector on an array, with title
> "The 297 instances of Morph".
> So, from the browser you can *get to* instances, viewing instances using
> inspectors and explorers, but you can't *browse* instances.
Is there a way to search for instances - by name - in the browser (or
somewhere) ? Has Squeak such kind of introspection that I can list all
instances of all objects, filter it by their class etc.?
> how can I derive a _usable_ new class from them?
> new
> ^Prototype duplicate
> .... Wendigone setPrototype: newhandle637
> and you'll get a new veryDeepCopy of the Morph you started with.
That's what I've been searching for!!!
Cheers,
Geza
More information about the Squeak-dev
mailing list
|