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