It's actually vitally important, it turns out, to have all of the
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 2 May 2005 09:42:09 +0000 (09:42 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 2 May 2005 09:42:09 +0000 (09:42 +0000)
`Cut', `Copy' and `Paste' items in the Edit menu of an OS X
application - because there's nothing else that enables the keyboard
cut/copy/paste shortcuts in an edit box! OS X Puzzles can now have
game IDs pasted into it, which it previously couldn't.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5728 cda61777-01e9-0310-a592-d414129be87e

osx.m

diff --git a/osx.m b/osx.m
index f444a9f..f769043 100644 (file)
--- a/osx.m
+++ b/osx.m
@@ -1236,7 +1236,9 @@ int main(int argc, char **argv)
     item = newitem(menu, "Undo", "z", NULL, @selector(undoMove:));
     item = newitem(menu, "Redo", "S-z", NULL, @selector(redoMove:));
     [menu addItem:[NSMenuItem separatorItem]];
+    item = newitem(menu, "Cut", "x", NULL, @selector(cut:));
     item = newitem(menu, "Copy", "c", NULL, @selector(copy:));
+    item = newitem(menu, "Paste", "v", NULL, @selector(paste:));
 
     menu = newsubmenu([NSApp mainMenu], "Type");
     typemenu = menu;