git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33065
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCocoaNSView *win;
NSWindow *keyWindow = [[NSApplication sharedApplication] keyWindow];
- win = wxCocoaNSView::GetFromCocoa([keyWindow firstResponder]);
+ win = wxCocoaNSView::GetFromCocoa(static_cast<NSView*>([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<NSView*>([mainWindow firstResponder]));
if(win)
return win->GetWxWindow();