Download Delegate, WebKit, how do you implement download?

Discussion in 'Mac Programming' started by slooksterPSV, Mar 7, 2007.

  1. macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #1
    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
     
  2. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #2
    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?
     
  3. thread starter macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #3
    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?
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London

Share This Page