SystemClipboard: saving objects


Hi, I’m working on Copy/Paste for my app. I want to save some structs/classes in System Clipboard. I thought about converting them to a String, and prepare the struct to be able to read from that string. However this seems a nasty way to do it because:

  • You can paste it to any text processor.
  • You cannot especify which kind of objects are you saving easily.
  • You cannot save/load multiple parameters/objects easily, and you need to use some special char to separate them.

How could I do the data I save in the System Clipboard exclusive for my app like other programs do? Is this the right way to do it?