From 747dbaba91d8cd32ca56e8e1608fda0bd84f388e Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 23 Feb 2010 17:32:01 +0000 Subject: [PATCH] proper app shutdown support for iphone git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/iphone/utils.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osx/iphone/utils.mm b/src/osx/iphone/utils.mm index ae34a8473a..66d1970dee 100644 --- a/src/osx/iphone/utils.mm +++ b/src/osx/iphone/utils.mm @@ -61,6 +61,10 @@ void wxBell() wxTheApp->OnInit(); } +- (void)applicationWillTerminate:(UIApplication *)application { + wxCloseEvent event; + wxTheApp->OnEndSession(event); +} - (void)dealloc { [super dealloc]; -- 2.45.2