Revision: 13831
          http://sourceforge.net/p/skim-app/code/13831
Author:   hofman
Date:     2023-12-05 14:52:53 +0000 (Tue, 05 Dec 2023)
Log Message:
-----------
check for NSXPCConnection class rather than NSAppKitVersionNumber

Modified Paths:
--------------
    trunk/SkimNotes/SKNAgentListener.m

Modified: trunk/SkimNotes/SKNAgentListener.m
===================================================================
--- trunk/SkimNotes/SKNAgentListener.m  2023-12-04 17:54:44 UTC (rev 13830)
+++ trunk/SkimNotes/SKNAgentListener.m  2023-12-05 14:52:53 UTC (rev 13831)
@@ -56,8 +56,6 @@
 - (BOOL)startXPCListenerWithServerName:(NSString *)serverName;
 - (void)destroyXPCConnection;
 @end
-#else
-#define NSAppKitVersionNumber10_8 1187
 #endif
 
 #pragma mark -
@@ -79,7 +77,7 @@
         if (isXPC) {
 #if defined(MAC_OS_X_VERSION_10_8) && MAC_OS_X_VERSION_MAX_ALLOWED >= 
MAC_OS_X_VERSION_10_8
 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_8
-            if (floor(NSAppKitVersionNumber) >= NSAppKitVersionNumber10_8)
+            if ([NSXPCConnection class])
 #endif
             success = [self startXPCListenerWithServerName:serverName];
 #endif

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to