Problem with WebKit Download Delegate
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