Metrowerks Objective-C++ is more strict about types than Apple's.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ed1f71875b
commit
9151dcec4f
@ -997,14 +997,14 @@ wxWindow *wxWindowBase::DoFindFocus()
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user