Skip to content

Commit

Permalink
Enable copy on Mac. Fixes #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Worthington committed Feb 19, 2014
1 parent 20ab598 commit b34ab8d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mac/MakeDiffReadable.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ int main (int argc, const char * argv[])
[fileMenu addItem:closeWindowItem];
[fileMenuItem setSubmenu:fileMenu];

// Edit menu.
id editMenuItem = [[NSMenuItem new] autorelease];
[menubar addItem:editMenuItem];
id editMenu = [[[NSMenu alloc] initWithTitle:@"Edit"] autorelease];
id copyMenuItem = [[[NSMenuItem alloc] initWithTitle:@"Copy"
action:@selector(copy:) keyEquivalent:@"c"] autorelease];
[editMenu addItem:copyMenuItem];
[editMenuItem setSubmenu:editMenu];

// Window menu.
id windowMenuItem = [[NSMenuItem new] autorelease];
[menubar addItem:windowMenuItem];
Expand Down

0 comments on commit b34ab8d

Please sign in to comment.