• 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
Re: Why is the latest WebKit interacting with my NSThread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is the latest WebKit interacting with my NSThread?


  • Subject: Re: Why is the latest WebKit interacting with my NSThread?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 7 Dec 2007 08:52:47 -0800


On Dec 7, 2007, at 4:57 AM, Michael Dupuis wrote:

Well after experimenting for a bit longer after posting this, I found the
problem: I was calling


[[[NSAttributedString alloc] initWithHTML:theData documentAttributes:nil]
autorelease]



in a thread, and apparently it's now not thread-safe (or maybe it never
was). Moving this outside of my thread resolved the problem. This call must
be accessing WebKit, which I guess sort of makes sense, but I wouldn't have
expected an NSAttributedString dependancy on WebKit.

This is documented in the AppKit release notes. The behavior has changed somewhat from release to release, so look at both the Tiger and the Leopard release notes.


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Why is the latest WebKit interacting with my NSThread? (From: "Michael Dupuis" <email@hidden>)

  • Prev by Date: Re: GCC Standard Predefined Macros
  • Next by Date: Best way to bind an Inspector to iVars/Properties?
  • Previous by thread: Re: Why is the latest WebKit interacting with my NSThread?
  • Next by thread: Spotlight importer
  • Index(es):
    • Date
    • Thread