Changeset 327

Show
Ignore:
Timestamp:
09/16/08 04:38:12 (4 months ago)
Author:
wolf
Message:

[NEW] JRLog: Use new NSCreateMapTable() 10.5 constants when targeting 10.5. Avoids deprecation warnings. (Dave Dribin)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cocoa/JRLog/JRLog.m

    r240 r327  
    227227+ (void)load { 
    228228        if (!gClassLoggingLevels) { 
    229                 gClassLoggingLevels = NSCreateMapTable(NSIntMapKeyCallBacks, NSIntMapValueCallBacks, 32); 
     229#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 
     230        gClassLoggingLevels = NSCreateMapTable(NSIntMapKeyCallBacks, NSIntMapValueCallBacks, 32); 
     231#else 
     232        gClassLoggingLevels = NSCreateMapTable(NSIntegerMapKeyCallBacks, NSIntegerMapValueCallBacks, 32); 
     233#endif 
    230234        } 
    231235}