On 10/16/09 6:06 AM, Scott Lee wrote:
I'm developing a HTML WYSIWYG application using gecko engine. I faced a problem which is about synchronous issue. It seems that function, eg. nsIWebNavigation::LoadURI, nsIWebBrowserPersist::SaveDocument, dosen't wait the end of process their own, it means I also should wait the notification message
That's correct; these functions depend on the event loop being spun to complete.
so I want to ask that there is a way to make those asynchronous function to synchronous function.
You could spin the event loop after calling the function, I suppose, until the operation completes... Or you could use a callback to do whatever you want to do on operation completion.
-Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
