• 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: can't get DOMDocument from WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >can't get DOMDocument from WebView (From: Kenny Leung <email@hidden>)
 >Re: can't get DOMDocument from WebView (From: glenn andreas <email@hidden>)
 >Re: can't get DOMDocument from WebView (From: Kenny Leung <email@hidden>)

  • Prev by Date: copying views how to but change 1 w/o changing the other?
  • Next by Date: Re: copying views how to but change 1 w/o changing the other?
  • Previous by thread: Re: can't get DOMDocument from WebView
  • Next by thread: NSTableView question
  • Index(es):
    • Date
    • Thread