[squeak-dev] Re: Extended Clipboard
John M McIntosh
johnmci at smalltalkconsulting.com
Sat Jan 1 09:20:37 UTC 2011
On 2010-12-31, at 10:48 PM, 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
OS-X had the concept of creating an instance of a clipboard to managed data. However in this case you actually work with
a singleton of the common clipboard that is responsible for sharing data between processes. So it's not technically correct to
say you are creating a clipboard in this use case.
The format strings are UTI identifiers
http://developer.apple.com/library/mac/#documentation/FileManagement/Conceptual/understanding_utis/understand_utis_conc/understand_utis_conc.html%23//apple_ref/doc/uid/TP40001319-CH202-CHDHIJDE
Also see http://en.wikipedia.org/wiki/Uniform_Type_Identifier
Lurk in Sophie and other parts of Squeak, and/or via OS calls to OS-X are translation tables between
http://en.wikipedia.org/wiki/MIME_type
and evil File Extensions.
However when we did the extended clipboard support for Sophie we decided not to build a plugin but do everything via FFI within the
concrete class that handles higher level clipboard usage. For OS-X we then would endup invoking extended clipboard logic to do the right thing.
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter: squeaker68882
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
===========================================================================
More information about the Squeak-dev
mailing list
|