git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4646 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-07-25 10:47:28 +00:00
parent a3e42efb33
commit 60a18ede5b
2 changed files with 26 additions and 5 deletions

View file

@ -83,14 +83,34 @@ static Class concrete;
- (void) replaceCharactersInRange: (NSRange)aRange
withAttributedString: (NSAttributedString *)attributedString
{
[super replaceCharactersInRange:aRange
withAttributedString:attributedString];
[super replaceCharactersInRange: aRange
withAttributedString: attributedString];
[self edited:NSTextStorageEditedCharacters | NSTextStorageEditedAttributes
range:aRange
changeInLength:aRange.length];
[self edited: NSTextStorageEditedCharacters | NSTextStorageEditedAttributes
range: aRange
changeInLength: [attributedString length] - aRange.length];
}
- (void) replaceCharactersInRange: (NSRange)aRange
withString: (NSString*)aString
{
[super replaceCharactersInRange: aRange
withString: aString];
[self edited: NSTextStorageEditedCharacters
range: aRange
changeInLength: [aString length] - aRange.length];
}
- (void) setAttributes: (NSDictionary*)attributes
range: (NSRange)aRange
{
[super setAttributes: attributes
range: aRange];
[self edited: NSTextStorageEditedAttributes
range: aRange
changeInLength: 0];
}
/*
* Managing NSLayoutManagers