• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView crashes with web content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSTextView crashes with web content
      • From: Gwynne <email@hidden>
  • Prev by Date: MVC paradigm: multiple controllers?
  • Next by Date: Re: NSTextView crashes with web content
  • Previous by thread: Re: MVC paradigm: multiple controllers?
  • Next by thread: Re: NSTextView crashes with web content
  • Index(es):
    • Date
    • Thread