]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/utils.mm
guarding open combo box against AppDefined NSEvents issued by wxEventLoop::WakeUp...
[wxWidgets.git] / src / osx / cocoa / utils.mm
index 8b80a601b125bef1514d9d309fbb1a98023b3b8f..66bf2fb6828e04ff0a8c0f6d0f8a9199a6507b10 100644 (file)
@@ -259,10 +259,14 @@ void wxBell()
 
 @end
 
-wxNSAppController* appcontroller = nil;
+WX_NSObject appcontroller = nil;
 
 NSLayoutManager* gNSLayoutManager = nil;
 
+WX_NSObject wxApp::OSXCreateAppController()
+{
+    return [[wxNSAppController alloc] init];
+}
 
 bool wxApp::DoInitGui()
 {
@@ -272,8 +276,9 @@ bool wxApp::DoInitGui()
     {
         [wxNSApplication sharedApplication];
 
-        appcontroller = [[wxNSAppController alloc] init];
+        appcontroller = OSXCreateAppController();
         [NSApp setDelegate:appcontroller];
+        [NSColor setIgnoresAlpha:NO];
 
         // calling finishLaunching so early before running the loop seems to trigger some 'MenuManager compatibility' which leads
         // to the duplication of menus under 10.5 and a warning under 10.6