Made some NSCell methods cleaner for subclass redefinitions.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18230 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-11-29 00:46:41 +00:00
parent 88925a9160
commit 08baa147cf
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2003-11-29 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSCell.m (-setTitleWithMnemonic:) use [setTitle:] instead
of [setStringValue:].
(-mnemonic) use [title] instead of [stringValue].
2003-11-28 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBezierPath.m (-bezierPathByReversingPath) return create

View file

@ -1102,7 +1102,7 @@ static NSColor *shadowCol;
{
unsigned int location = [aString rangeOfString: @"&"].location;
[self setStringValue: [aString stringByReplacingString: @"&"
[self setTitle: [aString stringByReplacingString: @"&"
withString: @""]];
// TODO: We should underline this character
[self setMnemonicLocation: location];
@ -1111,7 +1111,7 @@ static NSColor *shadowCol;
- (NSString*) mnemonic
{
unsigned int location = [self mnemonicLocation];
NSString *c = [self stringValue];
NSString *c = [self title];
if ((location == NSNotFound) || location >= [c length])
return @"";