Hi folks,
why is this raise there? I should only raise if the key is null as far as I can
see.
- (void) takeValue: (id)anObject forKey: (NSString*)aKey
{
SEL sel = 0;
const char *type = 0;
int off;
unsigned size = [aKey length] * 8;
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];
}
(.....)
David
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev