So much for edit buttons...
So much for edit buttons...
Posted Nov 6, 2010 21:25 UTC (Sat) by i3839 (guest, #31386)In reply to: You must be joking by i3839
Parent article: LPC: Life after X
Then again, it's probably good if programs paste the text for types they can't handle, so the user can open the file directly.
That makes me think of one thing PO8 might find non-trivial: How to copy and paste complex data types around in a program, while using the same keys for system wide copy&paste.
Either just export and import that bit to a file of the format that program prefers, or just check before pasting whether it's the data the program copied before or something new. Simple enough.
Some other potentially scarry non-trivial problem: What if a program exits? Again, no problem, because shared memory would be used, so it's persistent data.
Aha! You might say, but if you use tmp files for colpex types, won't you leak data and fill the disk with them? At worst, yes, but that's what FF and other are already doing. Besides that, as the copy & paste thing would be implemented as a library, after copying something new the old thing can be deleted.
And so on and on. As I said, it's trivial.