MoveSystemWindowToProject

Matej Kosik kosik at fiit.stuba.sk
Fri Aug 19 13:09:15 UTC 2005


Tony Garnock-Jones wrote:
> Hi all.
> 
> I've often wanted this functionality - to be able to move a window from 
> Project to Project. It turned out to be surprisingly simple to 
> implement. Hopefully I haven't overlooked anything important!
> 
> Ideally the same functionality would be extended to arbitrary top-level 
> morphs, but I can't think of a good user-interface for that general 
> morph-migration feature. Perhaps a "teleporter" that accepts dropped 
> morphs.
> 
> Attached is the changeset for review.
> 
> Regards,
>   Tony
> 

Hi,

I have filed your changeset in. It works. In method, `SystemWindow 
sendToProject', instead of

	World removeMorph: self.

I would use

	self delete.	

(Because I wasn't aware of `removeMorph:' existence).

But it is a good idea to be able to move system windows around the 
projects. It should be also considered whether Morph should contain some 
kind of

	Morph sendToProject: someProject

method---which cound be then invoked from `SystemWindow sendToProject' 
menu item handler. I am not sure.

Regards
-- 
Matej Košík



More information about the Squeak-dev mailing list