Date: 2009-05-18 12:16
Sender: Muriel Salvan
Hi Alex
Thanks for your answer. I gave it a new try, and found out that
using a custom data object (inheriting DataObjectSimple) in a
DataObjectComposite object did not place the custom data in the
clipboard.
When used with standard data objects (Text, Bitmap...) it works
as you just say: DataObjectComposite correctly places data in
the clipboard, but can't retrieve non preferred format.
I found a workaroud to place several custom data formats, by
simply inheriting the DataObject itself, and implementing the
few needed methods. Works like a charm to place data: replace
DataObjectComposite and DataObjectSimple with a simple
DataObject.
Thanks a lot for your help, and congrats' for this wonderful
lib !
Best regards,
Muriel |
Date: 2009-05-12 20:17
Sender: Alex Fenton
Hi Muriel
I believe it works fine for placing data on the clipboard - so
your custom data format is available to your app, but is also
available as text to other applications.
For fetching, I think the approach is to test is_supported? to
see whether the more advanced foramt is available, then fetch
it with an appropriate one-type data object. A bit clumsy but
should work.
Alex |