Macintosh VM (requests -- clipboard)

C. Keith Ray ckeithray at home.com
Mon Feb 5 22:36:10 UTC 2001


[...]
> Do Mac apps really provide all possible formats just in case? 

In the old days, that was the case (using PutScrap()), though it is now
possible to just "promise" several formats using the Carbon function
PutScrapFlavor().

>In Unix,
> when a copy is issued, the available formats are advertised. The pasting
> app decides which representation it wants, and the copying app generates
> it on-the-fly. Note that there is no "clipboard" involved, the apps
> communicate in peer-to-peer style.
>
>> When reading from the clipboard, Squeak would first look for its
>> "native format", then the PICT format, and then the text format.
>>
>> Handling drag-and-drop of various types (including filetype 'clpt'
>> creator 'drag') would involve some of the same code... the clipboard
>> formats should be used when dragging from Squeak to the Finder
>> desktop.
>
> Someone would have to come up with a nice x-platform primitive API for
> that stuff. Andreas' drop primitives via mime types sound like a good
> solution. But pasting/dropping is way easier to implement than
> dragging/copying (at least in X).

I think on the Mac, copying/dragging is slightly easier to implement than
pasting/dropping...

>
> -- Bert
>


----

C. Keith Ray





More information about the Squeak-dev mailing list