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/Concept...
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@smalltalkconsulting.com Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================