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 5104133f4f
commit f4e37fde73
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|. // Returns the top menu bar with the specified |tag|.
NSMenuItem* GetMenuBarMenuWithTag(NSInteger tag) { NSMenuItem* GetMenuBarMenuWithTag(NSInteger tag) {
NSMenu* main_menu = NSApp.mainMenu; NSMenu* main_menu = [[NSApplication sharedApplication] mainMenu];
NSInteger found_index = [main_menu indexOfItemWithTag:tag]; NSInteger found_index = [main_menu indexOfItemWithTag:tag];
if (found_index >= 0) if (found_index >= 0)
return [main_menu itemAtIndex:found_index]; return [main_menu itemAtIndex:found_index];