From a4554d93bc4db545b72f87d3e851210960a80577 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 16 Oct 2014 14:45:26 +0100 Subject: Attempt Objective-C fix. --- cocoa/gui.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cocoa/gui.m b/cocoa/gui.m index 467805aa1..45d615c52 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -247,8 +247,9 @@ static void gui_window_new_content(struct gui_window *g) static void gui_create_form_select_menu(struct gui_window *g, struct form_control *control) { - FormSelectMenu *menu = [[FormSelectMenu alloc] initWithControl: control forWindow: g->bw]; - [menu runInView: [(BrowserViewController *)bw->window browserView]]; + BrowserViewController * const window = (BrowserViewController *)g; + FormSelectMenu *menu = [[FormSelectMenu alloc] initWithControl: control forWindow: window->bw]; + [menu runInView: [window browserView]]; [menu release]; } -- cgit v1.2.3