/////////////////////////////////////////////////////////////////////////////
-// Name: utils.cpp
+// Name: src/cocoa/utils.cpp
// Purpose: Various utilities
// Author: AUTHOR
// Modified by:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#include "wx/setup.h"
+#include "wx/wxprec.h"
+
#include "wx/utils.h"
-#include "wx/app.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+#endif // WX_PRECOMP
+
#include "wx/apptrait.h"
#include "wx/display.h"
*height=768;
}
-wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()
+wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const
{
- static wxToolkitInfo info;
- info.shortName = _T("cocoa");
- info.name = _T("wxCocoa");
- // TODO: Finish this
- return info;
+ // We suppose that toolkit version is the same as OS version under Mac
+ wxGetOsVersion(verMaj, verMin);
+
+ return wxPORT_COCOA;
}
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)