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:
David Elliott 2005-03-26 05:28:40 +00:00
parent ed1f71875b
commit 9151dcec4f

View File

@ -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();