]> git.saurik.com Git - wxWidgets.git/commitdiff
Metrowerks Objective-C++ is more strict about types than Apple's.
authorDavid Elliott <dfe@tgwbd.org>
Sat, 26 Mar 2005 05:28:40 +0000 (05:28 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sat, 26 Mar 2005 05:28:40 +0000 (05:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/window.mm

index 5653b011b704c18321642175ea6a3fa7d7fac76c..69168f11c465365fcc4c05746b2e9b80fa0902b4 100644 (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();