#include <AudioToolbox/AudioServices.h>
-#if wxUSE_BASE
+#if 1 // wxUSE_BASE
// Emit a beeeeeep
void wxBell()
wxTheApp->OnInit();
}
+- (void)applicationWillTerminate:(UIApplication *)application {
+ wxCloseEvent event;
+ wxTheApp->OnEndSession(event);
+}
- (void)dealloc {
[super dealloc];
return true;
}
-int wxApp::OnRun()
-{
- wxMacAutoreleasePool pool;
- const char* appname = "app";
- UIApplicationMain( 1, (char**) &appname, nil, @"wxAppDelegate" );
- return 1;
-}
-
bool wxApp::DoInitGui()
{
return true;
{
}
-void wxMacWakeUp()
-{
- // TODO
-}
-
#endif // wxUSE_BASE
#if wxUSE_GUI
}
-#endif // wxOSX_USE_IPHONE
\ No newline at end of file
+#endif // wxOSX_USE_IPHONE