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.
// Anders
Anders Conradi beque@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. Karl
On söndag, sep 26, 2004, at 11:46 Europe/Stockholm, karl.ramberg@chello.se wrote:
Anders Conradi beque@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
Anders Conradi beque@telia.com wrote:
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.
Inspectors does not have the binding functionality the workspace have. It would be nice if they had though. Inspectors don't have the tempVar functionality workspaces have either. I have not looked into it, but it would not surprise me if it could be done with some crazy hacking :-) Karl
karl.ramberg@chello.se wrote:
Inspectors does not have the binding functionality the workspace have. It would be nice if they had though. Inspectors don't have the tempVar functionality workspaces have either. I have not looked into it, but it would not surprise me if it could be done with some crazy hacking :-)
For inspectors, how about dropping into the top-right pane means that you put the object into the currently selected instance variable, while dropping into the top-left pane means that you put the object into what variable you dropped it on top of?
Also, it would be nice if you could drag *from* labels in inspectors, and drop the resulting object either into a workspace or another object.
-Lex
lex@cc.gatech.edu wrote:
Date: Wed, 29 Sep 2004 17:41:35 -0400 From: lex@cc.gatech.edu Subject: Re: Q: How can I drop an object reference into a Workspace? To: The general-purpose Squeak developers list squeak-dev@lists.squeakfoundation.org Cc: The general-purpose Squeak developers list squeak-dev@lists.squeakfoundation.org, The general-purpose Squeak developers list squeak-dev@lists.squeakfoundation.org reply-to: The general-purpose Squeak developers list squeak-dev@lists.squeakfoundation.org
karl.ramberg@chello.se wrote:
Inspectors does not have the binding functionality the workspace have. It would be nice if they had though. Inspectors don't have the tempVar functionality workspaces have either. I have not looked into it, but it would not surprise me if it could be done with some crazy hacking :-)
For inspectors, how about dropping into the top-right pane means that you put the object into the currently selected instance variable, while dropping into the top-left pane means that you put the object into what variable you dropped it on top of?
Also, it would be nice if you could drag *from* labels in inspectors, and drop the resulting object either into a workspace or another object.
This sounds really cool.
Karl
squeak-dev@lists.squeakfoundation.org