X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb896a322a2ed53d393ee738765ddd3f72cee004..adf9e09990c79a3645eaa1f69b44d852c11a72f0:/src/cocoa/app.mm diff --git a/src/cocoa/app.mm b/src/cocoa/app.mm index 97ae62132a..260c579d2e 100644 --- a/src/cocoa/app.mm +++ b/src/cocoa/app.mm @@ -23,11 +23,13 @@ #include "wx/app.h" #include "wx/frame.h" #include "wx/dialog.h" + #include "wx/dc.h" #include "wx/intl.h" #include "wx/log.h" - #include "wx/cocoa/ObjcPose.h" #endif +#include "wx/cocoa/ObjcPose.h" + #if wxUSE_WX_RESOURCES # include "wx/resource.h" #endif @@ -311,6 +313,7 @@ END_EVENT_TABLE() // wxDebugContext::SetStream(NULL, NULL); #endif + wxDC::CocoaShutdownTextSystem(); #if wxUSE_LOG // do it as the very last thing because everything else can log messages delete wxLog::SetActiveTarget(NULL); @@ -352,6 +355,7 @@ bool wxApp::OnInitGui() // Create the app using the sharedApplication method m_cocoaApp = [NSApplication sharedApplication]; + wxDC::CocoaInitializeTextSystem(); // [ m_cocoaApp setDelegate:m_cocoaApp ]; #if 0 wxLogDebug("Just for kicks");