View Full Version : Download Delegate, WebKit, how do you implement download?
Mar 7, 2007, 07:54 PM
How do you implement downloading with the WebKit, I've tried to do this, but I don't even know what I need to do or that, if someone could help out that would be great! Thanks in advance
Mar 8, 2007, 03:44 AM
Basically it's made more complicated as there's no 'download this page show it and return' command to webkit. Basically you set the delegate then start the download. The delegate gets called with various messages telling it what it's up to. These messages can included progresss reports, download finished, download failed etc. Basically you write methods to handle those as you see fit.
Does that help?
Mar 8, 2007, 12:13 PM
I still don't completely understand, so I set the delegate to what I want it to, whether it be another window to handle this even (in another NIB file) or that right? Then once the delegate gets called I have it handle a URL that isn't of type html or htm or xml, etc. and have it bring up a save dialog, load the data like they do in PictureBrowser example, then save it to a file?
Mar 8, 2007, 03:22 PM
I posted a demo project of the basics in this thread (http://forums.macrumors.com/showthread.php?t=260016).