Issue Details (XML | Word | Printable)

Key: SQ-778
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Bert Freudenberg
Reporter: Stephen Thomas
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
squeakland

Copying objects between projects copies a Sketch and not the object

Created: 31/Aug/10 08:49 AM   Updated: 18/May/11 03:00 PM
Component/s: etoys, etoys-linux, etoys-mac, etoys-win
Fix Version/s: future release

Time Tracking:
Not Specified


 Description  « Hide
When I try and copy an object from one project to another (using CMD-C and CMD-V) the copied object is a Sketch, not the object(s) copied.

On Mac 4.1 Beta build 2384

Bert Freudenberg added a comment - 31/Aug/10 10:03 AM
Hmm, seems Etoys is thinking the pasted object came from another application ...

Bert Freudenberg added a comment - 07/Sep/10 05:23 AM
A work-around would be to disable pasting graphics from other applications. Would that be desirable? Drag-and-drop would still work.

K. K. Subramaniam added a comment - 01/Oct/10 12:44 AM
Disabling graphics is a drastic step. A better workaround is to use the Supplies flap to transfer objects within Etoys.

Bert Freudenberg added a comment - 01/Oct/10 05:52 AM
The actual problem is that when pasting, we currently have no good way to know what to paste.

There is the internal text clipboard, the internal object clipboard, the external text clipboard, and the external bitmap clipboard. But copying an object puts it both into the internal object clipboard, and the external bitmap clipboard. We would have to find out if what is in the external clipboard was actually posted by Etoys or not.

That is how the text clipboard works - it checks if the external text has the same characters as the internal text, and if so, uses the internal text instead, thus preserving internal text attributes. Similarly, we might try to remember the bitmap we copied to the external clipboard, and if it matches what is pasted, use the object instead.

Alternatively, the clipboard plugin would have to be changed to not offer a paste when the clipboard contents came from Etoys.

Karl Ramberg added a comment - 18/May/11 03:00 PM
"Alternatively, the clipboard plugin would have to be changed to not offer a paste when the clipboard contents came from Etoys. "
Seem like the best solution to me