]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/window.mm
Temporary fix for link error to ~wxZipOutputStream()
[wxWidgets.git] / 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();