mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
replace NSString capitalizedString with manual handling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25743 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74757182a4
commit
db0050466d
2 changed files with 15 additions and 5 deletions
|
@ -1,4 +1,10 @@
|
|||
2007-12-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
2007-12-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSKeyValueObserving.m (-overrideSetterFor:): Manually
|
||||
capitalize the string, as the NSString method capitalizedString
|
||||
lowers all other characters.
|
||||
|
||||
2007-12-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSKeyValueObserving.m (-overrideSetterFor:): Made aware
|
||||
of dependent key mapping.
|
||||
|
|
|
@ -403,12 +403,16 @@ replacementForInstance(id o)
|
|||
NSString *a[2];
|
||||
unsigned i;
|
||||
BOOL found = NO;
|
||||
NSString *tmp;
|
||||
unichar u;
|
||||
|
||||
m = GSAllocMethodList(2);
|
||||
|
||||
suffix = [aKey capitalizedString];
|
||||
a[0] = [NSString stringWithFormat: @"set%@:", suffix];
|
||||
a[1] = [NSString stringWithFormat: @"_set%@:", suffix];
|
||||
suffix = [aKey substringFromIndex: 1];
|
||||
u = uni_toupper([aKey characterAtIndex: 0]);
|
||||
tmp = [[NSString alloc] initWithCharacters: &u length: 1];
|
||||
a[0] = [NSString stringWithFormat: @"set%@%@:", tmp, suffix];
|
||||
a[1] = [NSString stringWithFormat: @"_set%@%@:", tmp, suffix];
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
/*
|
||||
|
@ -506,7 +510,7 @@ replacementForInstance(id o)
|
|||
}
|
||||
else
|
||||
{
|
||||
NSMapTable depKeys = NSMapGet(dependentKeyTable, [self class]);
|
||||
NSMapTable depKeys = NSMapGet(dependentKeyTable, original);
|
||||
|
||||
if (depKeys)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue