Attributed range fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8586 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2001-01-13 20:33:58 +00:00
parent 23b40dc703
commit 158e28ec5e
3 changed files with 25 additions and 10 deletions

View file

@ -74,7 +74,13 @@ void testAttributedString(void)
NSAttributedString *attrString;
NSMutableAttributedString *muAttrString,*muAttrString2;
NSMutableDictionary *attributes,*colorAttributes,*twoAttributes;
NSMutableAttributedString *text;
text = [[NSMutableAttributedString alloc] initWithString: @"this is a bug"];
[text addAttribute: @"foo" value: @"bar" range: NSMakeRange(0,4)];
[text deleteCharactersInRange: NSMakeRange(0,1)];
[text attribute: @"foo" atIndex: 0 effectiveRange: 0];
attributes = [[[NSMutableDictionary alloc] init] autorelease];
[attributes setObject:@"Helvetica 12-point"
forKey:NSFontAttributeName];