How to implement the “Edit” menu with “Undo”, “Cut”, “Paste” and “Copy”?
问题 Greetings, for one of my applications I'm trying to implement an "Edit" menu. This menu usually has the standard-entries Undo , Cut , Copy and Paste . This menu is not there by default, and users seem to expect it especially on Mac OS X. Is there a an easier way of implementing this, without doing so in every widget manually? Since most widgets have the copy/paste/undo mechanism already implemented via shortcuts, I'd like to provide a few simple menu actions that call them as well. The