return 1;
}
+bool wxApp::DoInitGui()
+{
+ return true;
+}
+
+void wxApp::DoCleanUp()
+{
+}
+
void wxMacWakeUp()
{
// TODO
// get OS version
int major, minor;
- wxString release = wxCFStringRef( [ [UIDevice currentDevice] systemVersion] ).AsString() ;
+ wxString release = wxCFStringRef( wxCFRetain( [ [UIDevice currentDevice] systemVersion] ) ).AsString() ;
if ( release.empty() ||
- wxSscanf(release.c_str(), wxT("%d.%d"), &major, &minor) != 2 )
+ // TODO use wx method
+ scanf(release.c_str(), wxT("%d.%d"), &major, &minor) != 2 )
{
// failed to get version string or unrecognized format
major =
wxString wxGetOsDescription()
{
- wxString release = wxCFStringRef( [ [UIDevice currentDevice] systemName] ).AsString() ;
+ wxString release = wxCFStringRef( wxCFRetain([ [UIDevice currentDevice] systemName] )).AsString() ;
return release;
}