mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:57:39 +00:00
Tidied.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4646 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a3e42efb33
commit
60a18ede5b
2 changed files with 26 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue