Marked a TODO in darwin/menu.m as resolved; we were already doing it properly.

This commit is contained in:
Pietro Gagliardi 2015-04-30 18:02:21 -04:00
parent 185d9cf122
commit 4035aee115
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ enum {
// next are the three hiding options
title = [@"Hide " stringByAppendingString:appName];
item = [[NSMenuItem alloc] initWithTitle:title action:@selector(hide:) keyEquivalent:@"h"];
// TODO set target for all three of these? the .xib file says they go to -1 ("First Responder", which sounds wrong...)
// the .xib file says they go to -1 ("First Responder", which sounds wrong...)
// to do that, we simply leave the target as nil
[appMenu addItem:item];
item = [[NSMenuItem alloc] initWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"];
[item setKeyEquivalentModifierMask:(NSAlternateKeyMask | NSCommandKeyMask)];