[squeak-dev] How do I move a morph from one project to another?
Chris Cunningham
cunningham.cb at gmail.com
Tue May 1 15:54:06 UTC 2018
Hi.
On Tue, May 1, 2018 at 6:10 AM, Stéphane Rollandin <lecteur at zogotounga.net>
wrote:
> Is there a magic menu item somewhere that I can send a morph to a specific
>> project?
>>
>
> I have that in my muO images (such as the available at
> http://www.zogotounga.net/comp/squeak/muo/muO335.zip), it is an item from
> the red halo handle, "send to project..."
>
> The implementation is
>
>
> Morph>>sendToAnotherProject
>
> | target |
>
> target := Project queryProject ifNil: [^ self].
> target world addMorph: self
>
<snip>
I'm talking my way into adding something like this to Trunk. But,
shouldn't we just addMorph: to project, instead of looking at its world to
add it there? Yes, it doesn't support this yet, but shouldn't it with
appropriate encapsulation?
-cbc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180501/226e433d/attachment.html>
More information about the Squeak-dev
mailing list
|