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:
Fred Kiefer 2000-10-23 23:17:40 +00:00
parent c8a2f96d51
commit 282a7532b0

View file

@ -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