X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee0225491381093f4c119b5170d9d21d43090c42..2b199a38dccae76ad59f747dd7ef6fcfc680c089:/src/cocoa/window.mm diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 5653b011b7..69168f11c4 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -997,14 +997,14 @@ wxWindow *wxWindowBase::DoFindFocus() wxCocoaNSView *win; NSWindow *keyWindow = [[NSApplication sharedApplication] keyWindow]; - win = wxCocoaNSView::GetFromCocoa([keyWindow firstResponder]); + win = wxCocoaNSView::GetFromCocoa(static_cast([keyWindow firstResponder])); if(win) return win->GetWxWindow(); NSWindow *mainWindow = [[NSApplication sharedApplication] keyWindow]; if(mainWindow == keyWindow) return NULL; - win = wxCocoaNSView::GetFromCocoa([mainWindow firstResponder]); + win = wxCocoaNSView::GetFromCocoa(static_cast([mainWindow firstResponder])); if(win) return win->GetWxWindow();