From 9aadf1d411d7c9c073327e9df71833f574106ae3 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Mon, 5 Jan 2009 19:21:34 +0000 Subject: [PATCH] Only output a NSDebugLLog() not an NSLog() when the class has no setter for the key. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27525 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSKeyValueObserving.m | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7ea87c83f..e17b1ce9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-05 Fred Kiefer + + * Source/NSKeyValueObserving.m (-overrideSetterFor:): Only output + a NSDebugLLog() not an NSLog() when the class has no setter for + the key. + 2009-01-05 Fred Kiefer * Source/NSString.m (-paragraphRangeForRange:, diff --git a/Source/NSKeyValueObserving.m b/Source/NSKeyValueObserving.m index 8bd9c4e6e..0d46917e4 100644 --- a/Source/NSKeyValueObserving.m +++ b/Source/NSKeyValueObserving.m @@ -26,6 +26,7 @@ #include "GNUstepBase/preface.h" #import "Foundation/NSCharacterSet.h" +#import "Foundation/NSDebug.h" #import "Foundation/NSDictionary.h" #import "Foundation/NSEnumerator.h" #import "Foundation/NSException.h" @@ -585,7 +586,7 @@ replacementForClass(Class c) if (!found) { - NSLog(@"class %@ not KVC complient for %@", original, aKey); + NSDebugLLog(@"KVC", @"class %@ not KVC complient for %@", original, aKey); /* [NSException raise: NSInvalidArgumentException format: @"class not KVC complient for %@", aKey];