attributed string fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5715 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-01-09 15:30:11 +00:00
parent febd164742
commit dd5ae0641d
3 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,8 @@
Sun Jan 9 15:20:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSGAttributedString.m: ([-attributesAtIndex:effectiveRange:])
fixed illegal parameter - reported by jagapen@whitewater.chem.wisc.edu
Wed Jan 5 16:22:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSData.m: when serializing selectors, cope with untyped

View file

@ -1061,10 +1061,10 @@ static NSFileManager* defaultManager = nil;
content = [NSMutableArray arrayWithCapacity: 128];
nxtImp = [direnum methodForSelector: @selector(nextObject)];
addImp = [content methodForSelector: @selector(addObject: )];
addImp = [content methodForSelector: @selector(addObject:)];
while ((path = (*nxtImp)(direnum, @selector(nextObject))) != nil)
(*addImp)(content, @selector(addObject: ), path);
(*addImp)(content, @selector(addObject:), path);
RELEASE(direnum);
@ -1099,10 +1099,10 @@ static NSFileManager* defaultManager = nil;
content = [NSMutableArray arrayWithCapacity: 128];
nxtImp = [direnum methodForSelector: @selector(nextObject)];
addImp = [content methodForSelector: @selector(addObject: )];
addImp = [content methodForSelector: @selector(addObject:)];
while ((path = (*nxtImp)(direnum, @selector(nextObject))) != nil)
(*addImp)(content, @selector(addObject: ), path);
(*addImp)(content, @selector(addObject:), path);
RELEASE(direnum);

View file

@ -409,8 +409,9 @@ _attributesAtIndexEffectiveRange(
- (NSDictionary*) attributesAtIndex: (unsigned)index
effectiveRange: (NSRange*)aRange
{
unsigned dummy;
return _attributesAtIndexEffectiveRange(
index, aRange, [_textChars length], _infoArray, NULL);
index, aRange, [_textChars length], _infoArray, &dummy);
}
- (void) setAttributes: (NSDictionary*)attributes