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
This commit is contained in:
Stefan Csomor 2010-04-03 09:58:19 +00:00
parent 7b896860bf
commit 22ed9d1186
2 changed files with 0 additions and 30 deletions

View File

@ -79,28 +79,6 @@ static int CalculateUIEventMaskFromEventCategory(wxEventCategory cat)
}
*/
@interface wxAppDelegate : NSObject <UIApplicationDelegate> {
}
@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()
{
}

View File

@ -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;