• 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
How to download via WebKit pages?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to download via WebKit pages?


  • Subject: How to download via WebKit pages?
  • From: Colin Cornaby <email@hidden>
  • Date: Thu, 1 Jan 2004 14:40:08 -0800

Hi,

I have a page being viewed via a WebView. I want to be able to manage downloads whenever the user clicks on a link that is a downloadable (like a .tgz file). I tried creating a delegate, and linking it to the download delegate for teh view in IB. I then added the following delegate method:

- (void)download:(NSURLDownload *)download decideDestinationWithSuggestedFilename:(NSString *)filename

Within the download method I put a NSLog to make sure the method was being triggered. However, anytime I attempted to download the NSLog was never triggered. What am I missing to manage downloads?

WebKit needs better documentation. Other than that its quite a nice API.

-----------------------
Colin Cornaby - Co-Founder, Carpe Stellarem. Duality Project Manager. http://www.carpestellarem.com
_______________________________________________
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.
  • Prev by Date: Re: Encryption
  • Next by Date: Re: Encryption
  • Previous by thread: Re: Fun GDB tricks
  • Next by thread: NSTextField containing Button?
  • Index(es):
    • Date
    • Thread