mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +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
|
@ -3,6 +3,7 @@ Sun Jul 25 11:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|||
* Source/GSTextStorage.m: Modified ([-setAttributes:range:]) and
|
||||
([-replaceCharactersinRange:withString:]) to call
|
||||
([-edited:range:changeInLength:) on completion.
|
||||
* Source/NSTextStorage.m: likewise.
|
||||
|
||||
1999-07-24 Michael Hanni <mhanni@sprintmail.com>
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue