Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[NEW] JRLog: Use new NSCreateMapTable() 10.5 constants when targeting…

… 10.5. Avoids deprecation warnings. (Dave Dribin)
  • Loading branch information...
commit bada5999850180d58f965fb37ffd490a4a9a71df 1 parent 51d866c
@rentzsch authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 JRLog.m
View
6 JRLog.m
@@ -226,7 +226,11 @@ @implementation NSObject (JRLogAdditions)
NSMapTable *gClassLoggingLevels = NULL;
+ (void)load {
if (!gClassLoggingLevels) {
- gClassLoggingLevels = NSCreateMapTable(NSIntMapKeyCallBacks, NSIntMapValueCallBacks, 32);
+#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
+ gClassLoggingLevels = NSCreateMapTable(NSIntMapKeyCallBacks, NSIntMapValueCallBacks, 32);
+#else
+ gClassLoggingLevels = NSCreateMapTable(NSIntegerMapKeyCallBacks, NSIntegerMapValueCallBacks, 32);
+#endif
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.