• 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: WebView Loading Images from Local Filesystem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >WebView Loading Images from Local Filesystem (From: Jon Buys <email@hidden>)

  • Prev by Date: Re: updating NSView on separate thread
  • Next by Date: Re: updating NSView on separate thread
  • Previous by thread: WebView Loading Images from Local Filesystem
  • Next by thread: SetFrontProcessWithOptions and NSPanel
  • Index(es):
    • Date
    • Thread