mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Added begin/endEditing to all
complex methods on NSMutableAttributedString as necessary for NSTextStorage. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7890 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c8a2f96d51
commit
282a7532b0
1 changed files with 8 additions and 0 deletions
|
@ -618,6 +618,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
|
||||
setImp = [self methodForSelector: setSel];
|
||||
|
||||
[self beginEditing];
|
||||
while (effectiveRange.location < NSMaxRange(aRange))
|
||||
{
|
||||
effectiveRange = NSIntersectionRange(aRange, effectiveRange);
|
||||
|
@ -639,6 +640,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
&effectiveRange);
|
||||
}
|
||||
}
|
||||
[self endEditing];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -673,6 +675,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
|
||||
setImp = [self methodForSelector: setSel];
|
||||
|
||||
[self beginEditing];
|
||||
while (effectiveRange.location < NSMaxRange(aRange))
|
||||
{
|
||||
effectiveRange = NSIntersectionRange(aRange,effectiveRange);
|
||||
|
@ -694,6 +697,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
&effectiveRange);
|
||||
}
|
||||
}
|
||||
[self endEditing];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -717,6 +721,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
|
||||
setImp = [self methodForSelector: setSel];
|
||||
|
||||
[self beginEditing];
|
||||
while (effectiveRange.location < NSMaxRange(aRange))
|
||||
{
|
||||
effectiveRange = NSIntersectionRange(aRange,effectiveRange);
|
||||
|
@ -738,6 +743,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
&effectiveRange);
|
||||
}
|
||||
}
|
||||
[self endEditing];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -768,6 +774,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
return;
|
||||
}
|
||||
|
||||
[self beginEditing];
|
||||
tmpStr = [attributedString string];
|
||||
[self replaceCharactersInRange: aRange withString: tmpStr];
|
||||
max = [tmpStr length];
|
||||
|
@ -793,6 +800,7 @@ static Class NSMutableAttributedString_concrete_class;
|
|||
loc = NSMaxRange(effectiveRange);
|
||||
}
|
||||
}
|
||||
[self endEditing];
|
||||
}
|
||||
|
||||
- (void) replaceCharactersInRange: (NSRange)aRange
|
||||
|
|
Loading…
Reference in a new issue