From: Stefan Csomor Date: Sat, 3 Apr 2010 09:58:19 +0000 (+0000) Subject: shuffling code back from eventloop to common app utils X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/22ed9d11862757c0cffce9c3ddfa370d1fcef81b shuffling code back from eventloop to common app utils git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/iphone/evtloop.mm b/src/osx/iphone/evtloop.mm index 38a786578f..41b8235296 100644 --- a/src/osx/iphone/evtloop.mm +++ b/src/osx/iphone/evtloop.mm @@ -79,28 +79,6 @@ static int CalculateUIEventMaskFromEventCategory(wxEventCategory cat) } */ -@interface wxAppDelegate : NSObject { -} - -@end - -@implementation wxAppDelegate - -- (void)applicationDidFinishLaunching:(UIApplication *)application { - wxTheApp->OnInit(); -} - -- (void)applicationWillTerminate:(UIApplication *)application { - wxCloseEvent event; - wxTheApp->OnEndSession(event); -} - -- (void)dealloc { - [super dealloc]; -} - -@end - wxGUIEventLoop::wxGUIEventLoop() { } diff --git a/src/osx/iphone/utils.mm b/src/osx/iphone/utils.mm index 66d1970dee..884a2d16e0 100644 --- a/src/osx/iphone/utils.mm +++ b/src/osx/iphone/utils.mm @@ -78,14 +78,6 @@ bool wxApp::CallOnInit() return true; } -int wxApp::OnRun() -{ - wxMacAutoreleasePool pool; - const char* appname = "app"; - UIApplicationMain( 1, (char**) &appname, nil, @"wxAppDelegate" ); - return 1; -} - bool wxApp::DoInitGui() { return true;