Revision: 29994
http://sourceforge.net/p/bibdesk/svn/29994
Author: hofman
Date: 2026-02-15 16:36:38 +0000 (Sun, 15 Feb 2026)
Log Message:
-----------
remove delegate method that never is called
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2026-02-15 16:36:05 UTC (rev 29993)
+++ trunk/bibdesk/BDSKEditor.m 2026-02-15 16:36:38 UTC (rev 29994)
@@ -1716,33 +1716,6 @@
return NO;
}
-- (NSURL *)fileView:(FVFileView *)aFileView
downloadDestinationWithSuggestedFilename:(NSString *)filename {
- // this will never be called as we return NO above
- NSURL *fileURL = nil;
- NSString *extension = [filename pathExtension];
- NSString *downloadsDirectory = [[[NSUserDefaults standardUserDefaults]
stringForKey:BDSKDownloadsDirectoryKey] stringByExpandingTildeInPath];
- BOOL isDir;
-
- if (downloadsDirectory == nil)
- downloadsDirectory = [[[NSFileManager defaultManager]
downloadFolderURL] path];
-
- if ([NSString isEmptyString:extension] == NO && [[NSFileManager
defaultManager] fileExistsAtPath:downloadsDirectory isDirectory:&isDir] &&
isDir) {
- fileURL = [NSURL fileURLWithPath:[downloadsDirectory
stringByAppendingPathComponent:filename] isDirectory:NO];
- } else {
- NSSavePanel *sPanel = [NSSavePanel savePanel];
- if (NO == [extension isEqualToString:@""])
- [sPanel setAllowedFileTypes:@[extension]];
- [sPanel setAllowsOtherFileTypes:YES];
- [sPanel setCanSelectHiddenExtension:YES];
- [sPanel setNameFieldStringValue:filename];
-
- // we need to do this modally, not using a sheet, as the download may
otherwise finish on Leopard before the sheet is done
- if (NSModalResponseOK == [sPanel runModal])
- fileURL = [sPanel URL];
- }
- return fileURL;
-}
-
- (void)trashFileURLs:(NSArray *)fileURLs
{
[[NSWorkspace sharedWorkspace] recycleURLs:fileURLs completionHandler:nil];
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