Can an app use the clipboard for its own purposes? (read: who owns the clipboard?)

Posted by eran on Stack Overflow See other posts from Stack Overflow or by eran
Published on 2009-07-23T16:53:57Z Indexed on 2010/03/14 23:35 UTC
Read the original article Hit count: 315

Filed under:
|
|

In PowerBuilder's IDE, the code autocomplete feature uses the clipboard to communicate the completed text to the code window. By doing so, it overrides whatever was stored on the clipboard before. So, if you had the winning numbers of the next lottary stored on your clipboard, and you used the autocomplete to turn m_goodfor into m_goodfornothing, you've just lost your only chance of ever getting rich, and you're left with nothing on your clipboard.

Features like that are the reason I hate software. It looks like it was implemented by some intern that noone was looking after. However, there's also a chance I got all worked up for nothing, and making such use of the clipboard is absolutely legit. So, can an app use the clipboard for its own purposes? Who is considered the owner of the clipboard?

(Bonus votes to whoever puts himself in place of the feature's programmer, and provides some reasoning for this being done on purpose, assuming the users would actually benefite from it)

© Stack Overflow or respective owner

Related posts about Windows

Related posts about clipboard