cefclient: macOS: Fix Xcode 5 compile error (issue #2116)
This commit is contained in:
parent
b85e69a94c
commit
6d97cfb761
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue