- fixed <rdar://problem/
3890352> REGRESSION (125-170, Panther-only): pasted textarea contents disappear (exception in NSText)
* kwq/KWQTextArea.mm: (-[KWQTextArea tile]): Don't resize the text view immediately here.
Use performWithDelay to defer it to avoid the re-entrancy that bothers the Panther version
of NSTextView. On Tiger, leave the code alone.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8540
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-02-07 Darin Adler <darin@apple.com>
+
+ Reviewed by NOBODY (OOPS!).
+
+ - fixed <rdar://problem/3890352> REGRESSION (125-170, Panther-only): pasted textarea contents disappear (exception in NSText)
+
+ * kwq/KWQTextArea.mm: (-[KWQTextArea tile]): Don't resize the text view immediately here.
+ Use performWithDelay to defer it to avoid the re-entrancy that bothers the Panther version
+ of NSTextView. On Tiger, leave the code alone.
+
2005-02-07 Adele Amchan <adele@apple.com>
Reviewed by Darin.
- (void)tile
{
[super tile];
+#if !BUILDING_ON_PANTHER
[self _updateTextViewWidth];
+#else
+ // Pre-Tiger, if we change the width here we re-enter in a way that makes NSText unhappy.
+ [self performSelector:@selector(_updateTextViewWidth) withObject:nil afterDelay:0];
+#endif
}
- (void)getCursorPositionAsIndex:(int *)index inParagraph:(int *)paragraph