formatting+prototypes

This commit is contained in:
daboe01
2014-07-12 13:58:36 +02:00
parent 806db24c0e
commit 89525330c4
2 changed files with 50 additions and 50 deletions
+3 -3
View File
@@ -242,15 +242,15 @@ CPTextStorageDidProcessEditingNotification = @"CPTextStorageDidProcessEditingNot
- (void)replaceCharactersInRange:(CPRange)aRange withString:(CPString)aString
{
[self beginEditing];
[super replaceCharactersInRange: aRange withString: aString];
[self edited: CPTextStorageEditedCharacters range:aRange changeInLength:([aString length] - aRange.length)];
[super replaceCharactersInRange:aRange withString:aString];
[self edited:CPTextStorageEditedCharacters range:aRange changeInLength:([aString length] - aRange.length)];
[self endEditing];
}
- (void)replaceCharactersInRange:(CPRange)aRange withAttributedString:(CPAttributedString)aString
{
[self beginEditing];
[super replaceCharactersInRange: aRange withAttributedString:aString];
[super replaceCharactersInRange:aRange withAttributedString:aString];
[self edited:(CPTextStorageEditedAttributes | CPTextStorageEditedCharacters) range:aRange changeInLength:([aString length] - aRange.length)];
[self endEditing];
}