+2006-12-17 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * EOKeyValueCoding.m: fixed a runtime portability issue - removed
+ +initialize on NSArray category (v4.5.71)
+
2006-12-02 Marcus Mueller <znek@mulle-kybernetik.com>
* EOKeyValueCoding.m: fixed numerous bugs in the computeXXX: methods
buildSettings = {
COPY_PHASE_STRIP = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.70;
+ DYLIB_CURRENT_VERSION = 4.5.71;
FRAMEWORK_VERSION = A;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
DEPLOYMENT_POSTPROCESSING = YES;
DSTROOT = /;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.70;
+ DYLIB_CURRENT_VERSION = 4.5.71;
DYLIB_INSTALL_NAME_BASE = "@executable_path/../Frameworks/";
FRAMEWORK_SEARCH_PATHS = "$(USER_LIBRARY_DIR)/EmbeddedFrameworks";
FRAMEWORK_VERSION = A;
isa = XCBuildConfiguration;
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.70;
+ DYLIB_CURRENT_VERSION = 4.5.71;
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = common.h;
@implementation NSArray(EOKeyValueCoding)
-static Class NSDecimalNumberClass = Nil;
-
-+ (void)initialize {
- static BOOL didInit = NO;
- if (didInit) return;
- didInit = YES;
- NSDecimalNumberClass = [NSDecimalNumber class];
-}
-
- (id)computeSumForKey:(NSString *)_key {
+ static Class NSDecimalNumberClass;
id (*objAtIdx)(id, SEL, unsigned int);
unsigned i, cc = [self count];
NSDecimalNumber *sum;
+ if (NSDecimalNumberClass == Nil)
+ NSDecimalNumberClass = [NSDecimalNumber class];
+
sum = [NSDecimalNumber zero];
if (cc == 0) return sum;