Currently, I am using a very very primitive, yet effective technic as a clipboard: a file. “Copy”ing is just reading contents of that file and “Paste”ing is writing come content into that file. So, if you have a text based application, you can use the same clipboard file with CopierciN and voila, your application is also integrated with CopierciN . If you want your text to be available in clipboard (and be overwritten if user copies something) then use the “/var/mobile/Documents/clipboard.gom” file. Then the users can launch CopierciN and press “paste” to paste your text. You can also read the contents of the last copied text from there.
Another file is “/var/mobile/Documents/lasttext.gom”. This file holds the text to be shown when CopierciN is launched. So, you can write some stuff to this file and tell users to launch CopierciN (or launch it automatically if you can) and CopierciN will be showing the contents of this file when it is launched. Then the user can chose to send it as an SMS, or e-mail etc.
That’s all for basic integration. When I come up with a better, non-buggy way for text selection, I will share it too and hopefully, we will have a realistic looking copy-paste framework