Can't load URL in WebView from within modal loop?
Can't load URL in WebView from within modal loop?
- Subject: Can't load URL in WebView from within modal loop?
- From: Laurent Daudelin <email@hidden>
- Date: Sun, 04 Jan 2004 16:16:17 -0500
I'm still trying to get my webview to work from within a window displayed
using any variation of modal run methods in NSApp. I have a text field
connected to the webview that sends it 'takeStringURLFrom:', but every time
I try to load a page, any page, my delegate receives
webView:resource:didFailLoadingWithError:fromDataSource: with the error
being:
NSError "cancelled" Domain=NSURLErrorDomain Code=-999 UserInfo={
NSErrorFailingURLStringKey = "
http://www.apple.com";
NSLocalizedDescription = cancelled;
}
I discovered that if I control-click the text field, which brings the
contextual menu, after a few clicks, the page finally appears. There seems
to be some problems for the web kit to work from a modal loop.
Any pointer?
Thanks!
-Laurent.
--
============================================================================
Laurent Daudelin AIM/iChat: LaurentDaudelin <
http://nemesys.dyndns.org>
Logiciels Nemesys Software
mailto:email@hidden
creationism n.: The (false) belief that large, innovative software designs
can be completely specified in advance and then painlessly magicked out of
the void by the normal efforts of a team of normally talented programmers.
In fact, experience has shown repeatedly that good designs arise only from
evolutionary, exploratory interaction between one (or at most a small
handful of) exceptionally able designer(s) and an active user population --
and that the first try at a big new idea is always wrong. Unfortunately,
because these truths don't fit the planning models beloved of management,
they are generally ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.