mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix backward compatibility issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25230 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
87a3fe94c4
commit
dd723fd60e
2 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
* Source/GSString.m Fix bug getting cString from literal string
|
||||
with illegal (non-ascii) characters.
|
||||
* Source/NSKeyValueCoding.m: Fix backward compatibility issue with
|
||||
NSUnknownKeyException.
|
||||
|
||||
2007-06-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -38,7 +38,11 @@
|
|||
#include "Foundation/NSKeyValueCoding.h"
|
||||
#include "Foundation/NSNull.h"
|
||||
|
||||
NSString* const NSUndefinedKeyException = @"NSUndefinedKeyException";
|
||||
/* For backward compatibility NSUndefinedKeyException is actually the same
|
||||
* as the older NSUnknownKeyException
|
||||
*/
|
||||
NSString* const NSUnknownKeyException = @"NSUnknownKeyException";
|
||||
NSString* const NSUndefinedKeyException = @"NSUnknownKeyException";
|
||||
|
||||
|
||||
static void
|
||||
|
@ -349,7 +353,7 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
|
|||
(anObject ? (id)anObject : (id)@"(nil)"), @"NSTargetObjectUserInfoKey",
|
||||
(aKey ? (id)aKey : (id)@"(nil)"), @"NSUnknownUserInfoKey",
|
||||
nil];
|
||||
exp = [NSException exceptionWithName: NSInvalidArgumentException
|
||||
exp = [NSException exceptionWithName: NSUndefinedKeyException
|
||||
reason: @"Unable to set nil value for key"
|
||||
userInfo: dict];
|
||||
[exp raise];
|
||||
|
|
Loading…
Reference in a new issue