]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/app.cpp
Suppress harmless warning about unhandled wxSHOW_EFFECT_NONE.
[wxWidgets.git] / src / osx / carbon / app.cpp
index e413badf9713f0c125793b9afd181ff6ff8cbc79..22dfa62eddb3ca83ca48d6e7e68ec0b3b74e851d 100644 (file)
@@ -866,6 +866,20 @@ bool wxApp::ProcessIdle()
     return wxAppBase::ProcessIdle();
 }
 
+#if wxOSX_USE_COCOA_OR_CARBON
+
+int wxApp::OnRun()
+{
+    wxMacAutoreleasePool pool;
+    return wxAppBase::OnRun();
+}
+
+#else
+
+// iPhone version in utils.mm
+
+#endif
+
 #if wxOSX_USE_CARBON
 bool wxApp::DoInitGui()
 {
@@ -939,6 +953,7 @@ void wxApp::DoCleanUp()
 
 void wxApp::CleanUp()
 {
+    wxMacAutoreleasePool autoreleasepool;
 #if wxUSE_TOOLTIPS
     wxToolTip::RemoveToolTips() ;
 #endif