From f78f94d4f1b77a686e45d36b646e502c2e66fc37 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 28 Nov 2014 19:50:10 +0800 Subject: [PATCH] Fix building on Mac --- atom/browser/api/atom_api_menu_mac.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_menu_mac.mm b/atom/browser/api/atom_api_menu_mac.mm index e63b0732..b61d1c69 100644 --- a/atom/browser/api/atom_api_menu_mac.mm +++ b/atom/browser/api/atom_api_menu_mac.mm @@ -58,10 +58,10 @@ void MenuMac::PopupAt(Window* window, int x, int y) { if (!web_contents) return; - NSView* view = web_contents->GetContentNativeView(); - NSMenu* menu = [menu_controller menu]; base::scoped_nsobject menu_controller( [[AtomMenuController alloc] initWithModel:model_.get()]); + NSMenu* menu = [menu_controller menu]; + NSView* view = web_contents->GetContentNativeView(); // Show the menu. [menu popUpMenuPositioningItem:[menu itemAtIndex:0] -- 2.43.0