]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/filedlg.mm
guard XTI
[wxWidgets.git] / src / osx / cocoa / filedlg.mm
index 0ab62f5bfad811ecb13139f44c7e0f450c89a42f..d08d3a3c3ed8add3c71567eae42b8cd5c29fdb04 100644 (file)
@@ -70,10 +70,8 @@ bool HasAppKit_10_6()
         // case above.
         version = NSVersionOfRunTimeLibrary("AppKit");
     }
-    if (version == -1)
-    {
-        return false;
-    }
+
+    // Notice that this still works correctly even if version is -1.
     return version >= 0x40e2400 /* version of 10.6 AppKit */;
 }