Q: How can I drop an object reference into a Workspace?

Anders Conradi beque at telia.com
Mon Sep 27 00:59:40 UTC 2004


On söndag, sep 26, 2004, at 11:46 Europe/Stockholm, 
karl.ramberg at chello.se wrote:

> Anders Conradi <beque at telia.com> wrote:
>
>> Hi again,
>>
>> Here I am again with another newbie question. I am sure this is as
>> silly as my last one, but the answer eludes me.
>>
>> Let's say I have constructed an object. I also have a Workspace open
>> (or an inspector on another unrelated object). How can I place a
>> reference to the first object into the workspace, for example to use 
>> as
>> an argument to a message?
>>
>> I want to reference an object in a context where it is not bound to 
>> any
>> variable that I know of. I don't want to dig through some data
>> structures by code to find the object, but rather pick the object to
>> reference with the mouse.
>>
>> Failing that, is there anything like the outliners in self? With
>> support for linking objects to slots by dragging small blocks with the
>> mouse.
> You can drag and drop  morphs on the workspace to get a reference
> to it. Get the window menu and select the preference.

Thanks.
Is there some easy way to do the same for evaluator panes of inspectors?
I have hacked together some methods using MorphicWrappers to create 
wrappers for the result of an evaluation in evaluation panes, to drop 
MorphicWrappers into the workspace and get a reference to the wrapped 
object instead of the morph and to get a morph representing the 
inspected object from the window menu of inspectors. I would like to be 
able to drop morphs into the inspector as well, but it seems as if 
dropping references into the workspace uses the binding functionality 
of the workspace and that functionality doesn't seem to be there for 
inspectors.

> Karl
>

// Anders




More information about the Squeak-dev mailing list