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 4e2a218957
commit 44e39a88bc

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];