Re: can't get DOMDocument from WebView
Re: can't get DOMDocument from WebView
- Subject: Re: can't get DOMDocument from WebView
- From: Nicko van Someren <email@hidden>
- Date: Fri, 5 May 2006 16:39:33 +0100
On 3 May 2006, at 00:14, Kenny Leung wrote:
Hmmm... It seems that there is no way to get the document to load
without returning to the run loop. This makes life difficult. Funny
how they designed the system to do something difficult but then
made it very difficult to do something very simple. Reminds me of
Java.
Well, you are trying to use a class for a different purpose from the
one for which it was invented!
...
On May 2, 2006, at 2:20 PM, glenn andreas wrote:
...
You need to set a load delegate to the web view and implement the
webView:didFinishLoadForFrame: routine to actually be notified
when the frame is fully loaded (at which point you can do whatever
you want with the DOMDocument)
You could always try [[NSRunLoop currentRunLoop] runUntilDate:
[NSDate dateWithTimeIntervalSinceNow: 1.0]] in place of your sleep(1)
if you really can't bring yourself to think asynchronously.
Nicko
_______________________________________________
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