|
From: | Richard Frith-Macdonald |
Subject: | Re: Exception in takeValue:forKey: |
Date: | Thu, 29 Nov 2007 08:56:14 +0000 |
User-agent: | GNUMail (Version 1.2.0) |
On 2007-11-28 19:09:59 +0000 David Wetzel <address@hidden> wrote:
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: NSInvalidArgumentExceptionformat: @"Attempt to set nil value for key '%@'", aKey];}
No reason that I can see ... I'll remove it.
[Prev in Thread] | Current Thread | [Next in Thread] |