Revision: 29540
          http://sourceforge.net/p/bibdesk/svn/29540
Author:   hofman
Date:     2025-09-07 17:14:21 +0000 (Sun, 07 Sep 2025)
Log Message:
-----------
no need to pass dowwnload argument

Modified Paths:
--------------
    trunk/bibdesk/BDSKDownloadManager.m

Modified: trunk/bibdesk/BDSKDownloadManager.m
===================================================================
--- trunk/bibdesk/BDSKDownloadManager.m 2025-09-07 17:09:12 UTC (rev 29539)
+++ trunk/bibdesk/BDSKDownloadManager.m 2025-09-07 17:14:21 UTC (rev 29540)
@@ -230,7 +230,7 @@
     }
 }
 
-- (void)download:(id)download decideDestinationWithSuggestedFilename:(NSString 
*)filename window:(NSWindow *)window completionHandler:(void (^)(NSURL * 
destination))completionHandler {
+- (void)decideDestinationWithSuggestedFilename:(NSString *)filename 
window:(NSWindow *)window completionHandler:(void (^)(NSURL * 
destination))completionHandler {
     NSString *extension = [filename pathExtension];
    
     NSString *downloadsDirectory = [[[NSUserDefaults standardUserDefaults] 
stringForKey:BDSKDownloadsDirectoryKey] stringByExpandingTildeInPath];
@@ -344,7 +344,7 @@
     
     NSString *filename = [[webDownload response] suggestedFilename];
     
-    [downloadManager download:download 
decideDestinationWithSuggestedFilename:filename window:nil 
completionHandler:^(NSURL *destination){
+    [downloadManager decideDestinationWithSuggestedFilename:filename 
window:nil completionHandler:^(NSURL *destination){
         if (destination) {
             NSError *error = nil;
             if ([destination checkResourceIsReachableAndReturnError:NULL])
@@ -396,7 +396,7 @@
 }
 
 - (void)download:(WKDownload *)download 
decideDestinationUsingResponse:(NSURLResponse *)response 
suggestedFilename:(NSString *)filename completionHandler:(void (^)(NSURL * 
destination))completionHandler API_AVAILABLE(macos(11.3)) {
-    [downloadManager download:download 
decideDestinationWithSuggestedFilename:filename window:[[download webView] 
window] completionHandler:^(NSURL *destination){
+    [downloadManager decideDestinationWithSuggestedFilename:filename 
window:[[download webView] window] completionHandler:^(NSURL *destination){
         if (destination) {
             if ([destination checkResourceIsReachableAndReturnError:NULL])
                 [[NSFileManager defaultManager] removeItemAtURL:destination 
error:NULL];
@@ -417,7 +417,7 @@
 }
 
 - (void)download:(BDSKDownload *)download 
decideDestinationWithSuggestedFilename:(NSString *)filename 
completionHandler:(void (^)(NSURL *destinationURL, BOOL 
allowOverwrite))completionHandler {
-    [downloadManager download:download 
decideDestinationWithSuggestedFilename:filename window:nil 
completionHandler:^(NSURL *destination){
+    [downloadManager decideDestinationWithSuggestedFilename:filename 
window:nil completionHandler:^(NSURL *destination){
         completionHandler(destination, YES);
     }];
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to