From 8340e31f1f529367417bb84da764e902af604815 Mon Sep 17 00:00:00 2001 From: Alexander Bohn / FI$H2k Date: Tue, 11 Nov 2014 04:35:35 -0800 Subject: [PATCH] Fixed OS X compilation error in window_cocoa.mm Un-commented `NSApplicationActivationPolicyRegular` argument (in leu of zero) and got rid of problematic dereference --- modules/highgui/src/window_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/window_cocoa.mm b/modules/highgui/src/window_cocoa.mm index fca6ff9393..fbf3a54567 100644 --- a/modules/highgui/src/window_cocoa.mm +++ b/modules/highgui/src/window_cocoa.mm @@ -150,7 +150,7 @@ CV_IMPL int cvInitSystem( int , char** ) #define NSAppKitVersionNumber10_5 949 #endif if( floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5 ) - [application setActivationPolicy:0/*NSApplicationActivationPolicyRegular*/]; + [application setActivationPolicy:NSApplicationActivationPolicyRegular]; #endif //[application finishLaunching]; //atexit(icvCocoaCleanup);