Re: WebView Loading Images from Local Filesystem
Re: WebView Loading Images from Local Filesystem
- Subject: Re: WebView Loading Images from Local Filesystem
- From: Jens Alfke <email@hidden>
- Date: Sun, 31 Jan 2010 21:37:51 -0800
On Jan 31, 2010, at 1:24 PM, Jon Buys wrote:
> I'd like to be able to load images using an <img> tag in my HTML from my ~/Library/Application Support/ directory. I've been trying to use baseURL, but I get strange results when I create a file URL that points to my Application Support directory.
You'll need to tell us what you did and what the results were, if you want us to be able to help.
> - (void)webView:(WebView *)someWebView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id < WebPolicyDecisionListener >)listener {
> [listener ignore];
>
> [[NSWorkspace sharedWorkspace] openURL:[request URL]];
> }
What's this for? It seems unrelated to displaying images.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden