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:
parent
7b896860bf
commit
22ed9d1186
@ -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()
|
||||
{
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user