mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
23b40dc703
commit
158e28ec5e
3 changed files with 25 additions and 10 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue