Revision: 29549 http://sourceforge.net/p/bibdesk/svn/29549 Author: hofman Date: 2025-09-07 22:25:44 +0000 (Sun, 07 Sep 2025) Log Message: ----------- rename method
Modified Paths: -------------- trunk/bibdesk/BDSKDownloadManager.m Modified: trunk/bibdesk/BDSKDownloadManager.m =================================================================== --- trunk/bibdesk/BDSKDownloadManager.m 2025-09-07 21:51:04 UTC (rev 29548) +++ trunk/bibdesk/BDSKDownloadManager.m 2025-09-07 22:25:44 UTC (rev 29549) @@ -229,7 +229,7 @@ } } -- (void)decideDestinationWithSuggestedFilename:(NSString *)filename window:(NSWindow *)window completionHandler:(void (^)(NSURL * destination))completionHandler { +- (void)decideDestinationWithSuggestedFilename:(NSString *)filename modalForWindow:(NSWindow *)window completionHandler:(void (^)(NSURL * destination))completionHandler { NSString *extension = [filename pathExtension]; NSString *downloadsDirectory = [[[NSUserDefaults standardUserDefaults] stringForKey:BDSKDownloadsDirectoryKey] stringByExpandingTildeInPath]; @@ -351,7 +351,7 @@ filename = disposition; } - [downloadManager decideDestinationWithSuggestedFilename:filename window:nil completionHandler:^(NSURL *destination){ + [downloadManager decideDestinationWithSuggestedFilename:filename modalForWindow:nil completionHandler:^(NSURL *destination){ NSError *error = nil; if (destination) { if ([destination checkResourceIsReachableAndReturnError:NULL]) @@ -399,7 +399,7 @@ } - (void)download:(WKDownload *)download decideDestinationUsingResponse:(NSURLResponse *)response suggestedFilename:(NSString *)filename completionHandler:(void (^)(NSURL * destination))completionHandler API_AVAILABLE(macos(11.3)) { - [downloadManager decideDestinationWithSuggestedFilename:filename window:[[download webView] window] completionHandler:^(NSURL *destination){ + [downloadManager decideDestinationWithSuggestedFilename:filename modalForWindow:[[download webView] window] completionHandler:^(NSURL *destination){ if (destination) { if ([destination checkResourceIsReachableAndReturnError:NULL]) [[NSFileManager defaultManager] removeItemAtURL:destination error:NULL]; @@ -420,7 +420,7 @@ } - (void)download:(BDSKDownload *)download decideDestinationWithSuggestedFilename:(NSString *)filename completionHandler:(void (^)(NSURL *destinationURL, BOOL allowOverwrite))completionHandler { - [downloadManager decideDestinationWithSuggestedFilename:filename window:nil completionHandler:^(NSURL *destination){ + [downloadManager decideDestinationWithSuggestedFilename:filename modalForWindow: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 Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit