NSTextView crashes with web content
NSTextView crashes with web content
- Subject: NSTextView crashes with web content
- From: Renaud Boisjoly <email@hidden>
- Date: Sat, 2 Oct 2004 21:30:20 -0400
When copying the content of some web pages into my NSTextView subclass,
my app crashes after copying and pasting over and over a few times. The
thing is, TextEdit does the same, so I'm not sure how to bypass this
issue. Here is how you can reproduce the issue:
1. In TextEdit or another NNSTextView-based program,
1. In Safari (not sure about other browsers), go to
https://optionslink.etrade.com/e/t/applogic/OlNonLoginHome
2. Select the whole page(Command-A) and Copy
3. Switch to TextEidt and Paste in a new document
4. Select All, Copy and Paste twice
5. Select All, Copy and Paste a few times
After 6 or 7 times, TextEidt or the other App will crash.
The Crash report doesn't really help, its quite different each time as
you'll see if you try this.
It looks like there is something in the web content causing this...
would there be a quick way to transform the web content to an
attributed string with attachments in some other way that what
NSTextView uses?
thanks
- Renaud
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden