From 5d89995112172b5ae04d9a5333a5bb1e301e38d1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 9 Mar 2014 18:41:45 +0000 Subject: [PATCH] Revert some changes --- dgl/src/pugl/pugl_osx.m | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/dgl/src/pugl/pugl_osx.m b/dgl/src/pugl/pugl_osx.m index 2a589644..0770b114 100644 --- a/dgl/src/pugl/pugl_osx.m +++ b/dgl/src/pugl/pugl_osx.m @@ -372,25 +372,6 @@ puglCreate(PuglNativeWindow parent, [NSAutoreleasePool new]; [NSApplication sharedApplication]; - // TESTING! -#if 1 - NSApplication* app = [NSApplication sharedApplication]; - - if ([app respondsToSelector: @selector(setActivationPolicy:)]) { - - NSMethodSignature* method = [[app class] instanceMethodSignatureForSelector: @selector(setActivationPolicy:)]; - NSInvocation* invocation = [NSInvocation invocationWithMethodSignature: method]; - [invocation setTarget: app]; - [invocation setSelector: @selector(setActivationPolicy:)]; - NSInteger myNSApplicationActivationPolicyAccessory = 0; - [invocation setArgument: &myNSApplicationActivationPolicyAccessory atIndex: 2]; - [invocation invoke]; - } -#else - [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; -#endif - [NSApp finishLaunching]; - NSString* titleString = [[NSString alloc] initWithBytes:title length:strlen(title)