cefclient: macOS: Fix Xcode 5 compile error (issue #2116)

This commit is contained in:
Marshall Greenblatt 2017-04-28 17:19:29 -04:00
parent b85e69a94c
commit 6d97cfb761
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ namespace {
// Returns the top menu bar with the specified |tag|.
NSMenuItem* GetMenuBarMenuWithTag(NSInteger tag) {
NSMenu* main_menu = NSApp.mainMenu;
NSMenu* main_menu = [[NSApplication sharedApplication] mainMenu];
NSInteger found_index = [main_menu indexOfItemWithTag:tag];
if (found_index >= 0)
return [main_menu itemAtIndex:found_index];