mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
ee0ca83adc
commit
0e19e0b529
2 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
* Source/GSString.m Fix bug getting cString from literal string
|
* Source/GSString.m Fix bug getting cString from literal string
|
||||||
with illegal (non-ascii) characters.
|
with illegal (non-ascii) characters.
|
||||||
|
* Source/NSKeyValueCoding.m: Fix backward compatibility issue with
|
||||||
|
NSUnknownKeyException.
|
||||||
|
|
||||||
2007-06-06 Richard Frith-Macdonald <rfm@gnu.org>
|
2007-06-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,11 @@
|
||||||
#include "Foundation/NSKeyValueCoding.h"
|
#include "Foundation/NSKeyValueCoding.h"
|
||||||
#include "Foundation/NSNull.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
|
static void
|
||||||
|
@ -349,7 +353,7 @@ static id ValueForKey(NSObject *self, const char *key, unsigned size)
|
||||||
(anObject ? (id)anObject : (id)@"(nil)"), @"NSTargetObjectUserInfoKey",
|
(anObject ? (id)anObject : (id)@"(nil)"), @"NSTargetObjectUserInfoKey",
|
||||||
(aKey ? (id)aKey : (id)@"(nil)"), @"NSUnknownUserInfoKey",
|
(aKey ? (id)aKey : (id)@"(nil)"), @"NSUnknownUserInfoKey",
|
||||||
nil];
|
nil];
|
||||||
exp = [NSException exceptionWithName: NSInvalidArgumentException
|
exp = [NSException exceptionWithName: NSUndefinedKeyException
|
||||||
reason: @"Unable to set nil value for key"
|
reason: @"Unable to set nil value for key"
|
||||||
userInfo: dict];
|
userInfo: dict];
|
||||||
[exp raise];
|
[exp raise];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue