Re: initWithHTML problems
Re: initWithHTML problems
- Subject: Re: initWithHTML problems
- From: Randy Saldinger <email@hidden>
- Date: Sun, 19 Jun 2005 16:00:01 -0700
I'm having a problem with initWithHTML (from NSAttributedString) in
Tiger. In my app I try to convert a string that contains html code,
but when use this method, my application would hang and stop doing
anything.
I ran into a similar problem in Tiger. In my case, I was invoking
initWithHTML: from an NSURLConnection
delegate method (connectionDidFinishLoading:), but the symptom was
the same: a new run loop was started
and simply never finished. (The same thing worked fine in Panther.)
Since initWithHTML: uses WebKit in Tiger, I assume there is some bit
of code beneath NSURLConnection
that is not re-entrant. I posted a bug report (3931324), but it is
still open.
Anyway, I worked around this by using performSelector: to delay the
code that calls initWithHTML:, so it
happens after the NSURLConnection delegate method has returned, e.g.:
[self performSelector:@selector( handleTheHTMLString: )
withObject:theString
afterDelay:0.0];
Hope that helps.
Randy
_______________________________________________
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