[squeak-dev] Re: Injecting objects into Workspace bindings

karl ramberg karlramberg at gmail.com
Thu Mar 17 11:42:07 UTC 2016


On Thu, Mar 17, 2016 at 10:58 AM, Bert Freudenberg <bert at freudenbergs.de>
wrote:

>
> On 17.03.2016, at 01:43, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>
>
>
> On Wed, Mar 16, 2016 at 11:58 AM, Bert Freudenberg <bert at freudenbergs.de>
> wrote:
>
>>
>> > On 16.03.2016, at 18:48, marcel.taeumel <Marcel.Taeumel at hpi.de> wrote:
>> >
>> > Mabye we need a simple way to link bindings across tools. Then, for
>> example,
>> > we could simple connect a Workspace window to the text box in the
>> Inspector
>> > (resp. Object Explorer) and all would share the same bindings. Then, you
>> > could simply select stuff in the Object Explorer, evaluate "x := self"
>> and
>> > you would have access to x in that other Workspace (resp. Inspector's
>> text
>> > box).
>>
>> Not a bad idea … what could be a UI for connecting workspaces?
>>
>
> How about a test for Environments?  Create a subclass of Environment with
> a singleton called, say, Grabbag.  Implement a doesNotUnderstand: method in
> Grabbag that turns one-argument keyword messages such as Grabbag
> theSelector: theValue into at: theSelector put: theValue and unary messages
> into at: so that Grabbag theSelector is equivalent to Grabbag at:
> theSelector.  Then include Grabbag in all workspaces.  From Smalltalk one
> can do Grabbag at: #mine put: greedySeagull or Grabbag mineMineMine:
> flockOfGreedySeagulls, but in Workspaces (with the default option of
> importing Grabbag on) one can simply say dorysLocation :=
> #whatWasTheQuestionAgain
>
>
> That’s for when we wanted to always share bindings by default, sure. Not
> much UI needed for that.
>
> But I think I’d like workspaces to be isolated by default. And in that
> case we’d need some discoverable UI for making them shared.
>
> Another idea would be to only share selected bindings. We could always
> show a workspace’s bindings in a side panel (which may be useful in its own
> right) and then dragging a binding to another workspace would make it
> shared, so changes to it on one would be reflected in the other.
>

+1

Best,
Karl

>
> - Bert -
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160317/8e358f6f/attachment.htm


More information about the Squeak-dev mailing list