• 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
Problem with WebKit Download Delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with WebKit Download Delegate


  • Subject: Problem with WebKit Download Delegate
  • From: Dave Batton <email@hidden>
  • Date: Sun, 31 Dec 2006 11:58:18 +0100

I've added WebKit to my project and it's working fine. I can display a web page and navigate around.

I've registered with the notification center so I can display a progress indicator as pages download. Works fine.

I've also specified a download delegate, but my delegate methods aren't being called when I click on a download link like a zip file. Am I doing something wrong, or am I wrong to expect my delegate method to get called when I click on a file link? What am I missing?

Here's some of the significant bits of my code:


@implementation StoreViewController

- (void)awakeFromNib
{
  [webView setDownloadDelegate:self];
}

- (void)startDownloadingURL:sender
{
    NSLog(@"startDownloadingURL:");
}

- (void)downloadDidBegin:(NSURLDownload *)download
{
    NSLog(@"downloadDidBegin:");
}

- (void)download:(NSURLDownload *)download didCreateDestination: (NSString *)path
{
NSLog(@"download:didCreateDestination:");
}


- (void)downloadDidFinish:(NSURLDownload *)download
{
    NSLog(@"downloadDidFinish:");
}



--
Dave Batton
Mere Mortal Software
http://www.Mere-Mortal-Software.com/blog/


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: multiple lines in NSTableView
  • Next by Date: Re: Preferences binding update NSTextField and user defaults
  • Previous by thread: Re: multiple lines in NSTableView
  • Next by thread: Re: Problem with WebKit Download Delegate
  • Index(es):
    • Date
    • Thread