@end
-wxNSAppController* appcontroller = nil;
+WX_NSObject appcontroller = nil;
NSLayoutManager* gNSLayoutManager = nil;
+WX_NSObject wxApp::OSXCreateAppController()
+{
+ return [[wxNSAppController alloc] init];
+}
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