FROM : David Sinclair
DATE : Fri Apr 25 21:00:22 2008
On Apr 25, 2008, at 08:35:53, David Springer wrote:
> Folks,
>
> How can I use a WebView in a modal dialog? I understand that WebViews
> don't work in the modal runloop mode, so is there a way to fake this?
> Run my own nextEventMatchingMask: loop (I have tried this with very
> limited success)? Run the window containing the WebView in a separate
> thread with its own run loop? Get rid of WebView altogether and go
> straight to WebFrame (this sounds hard)?
Tickle the runloop. See my blog post about this:
<http://www.dejal.com/blog/2007/01/cocoa-topics-case-modal-webview>
--
David Sinclair, Dejal Systems, LLC - <email_removed>
Dejal blog - http://www.dejal.com/blog/
Cocoa code - http://www.dejal.com/developer/
Now on Twitter - http://twitter.com/dejal/
DATE : Fri Apr 25 21:00:22 2008
On Apr 25, 2008, at 08:35:53, David Springer wrote:
> Folks,
>
> How can I use a WebView in a modal dialog? I understand that WebViews
> don't work in the modal runloop mode, so is there a way to fake this?
> Run my own nextEventMatchingMask: loop (I have tried this with very
> limited success)? Run the window containing the WebView in a separate
> thread with its own run loop? Get rid of WebView altogether and go
> straight to WebFrame (this sounds hard)?
Tickle the runloop. See my blog post about this:
<http://www.dejal.com/blog/2007/01/cocoa-topics-case-modal-webview>
--
David Sinclair, Dejal Systems, LLC - <email_removed>
Dejal blog - http://www.dejal.com/blog/
Cocoa code - http://www.dejal.com/developer/
Now on Twitter - http://twitter.com/dejal/
| Related mails | Author | Date |
|---|---|---|
| David Springer | Apr 25, 17:35 | |
| David Sinclair | Apr 25, 21:00 | |
| Jean-Daniel Dupas | Apr 25, 21:27 |






Cocoa mail archive

