Commit 6d97cfb7 authored by Marshall Greenblatt's avatar Marshall Greenblatt

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

parent b85e69a9
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment