[squeak-dev] Re: Extended Clipboard

Bert Freudenberg bert at freudenbergs.de
Mon Jan 3 14:52:54 UTC 2011


On 01.01.2011, at 07:48, Andreas Raab wrote:

> Thanks for the info, but what about my questions? a) What does "creating" a clipboard mean and b) what are the format strings?
> 
> Thanks,
>  - Andreas

a) dunno. Here's the Unix implementation:

sqInt sqCreateClipboard( void )
{
  return 1;
}

b) platform-specific, can be anything. On Mac it is a "UTI" as John noted, on Unix it is a MIME type. There is a map between MIME types and UTIs because MIME is at least somewhat supported in Squeak.

Takashi did the Unix version. We needed one quickly for OLPC ...

Maybe have a look at the Mac and Unix-specific ExtendedClipboardInterface subclasses in the Etoys image. The Windows one is just a stub since we did not include the FFI stuff.

- Bert -




More information about the Squeak-dev mailing list