diff --git a/ChangeLog b/ChangeLog index 305880250..e2ba0a787 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-29 Richard Frith-Macdonald + + * Source/NSKeyValueCoding.m: Remove erroneous check for nil argument + in obsolete method ([takeValue:forKey:]). + 2007-10-30 Adam Fedor * Version 1.14.1 diff --git a/Source/NSKeyValueCoding.m b/Source/NSKeyValueCoding.m index 79bb57560..baa36dfb3 100644 --- a/Source/NSKeyValueCoding.m +++ b/Source/NSKeyValueCoding.m @@ -558,11 +558,6 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size) char key[size+1]; GSOnceMLog(@"This method is deprecated, use -setValue:forKey:"); - if (anObject == nil) - { - [NSException raise: NSInvalidArgumentException - format: @"Attempt to set nil value for key '%@'", aKey]; - } [aKey getCString: key maxLength: size+1 encoding: NSUTF8StringEncoding];