Revision: 30109
          http://sourceforge.net/p/bibdesk/svn/30109
Author:   hofman
Date:     2026-03-04 17:22:33 +0000 (Wed, 04 Mar 2026)
Log Message:
-----------
allow legacy form of dataSource method without return type

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-03-04 
17:08:08 UTC (rev 30108)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-03-04 
17:22:33 UTC (rev 30109)
@@ -2735,7 +2735,11 @@
     
     _fvFlags.needsReload = YES;
     
-    BOOL didInsert = [[self dataSource] fileView:self insertURLs:absoluteURLs 
atIndexes:indexSet forDrop:info dropOperation:operation];
+    BOOL didInsert = YES;
+    if (0 == strcmp([[(id)[self dataSource] 
methodSignatureForSelector:@selector(fileView:insertURLs:atIndexes:forDrop:dropOperation:)]
 methodReturnType], @encode(void)))
+        [[self dataSource] fileView:self insertURLs:absoluteURLs 
atIndexes:indexSet forDrop:info dropOperation:operation];
+    else
+        didInsert = [[self dataSource] fileView:self insertURLs:absoluteURLs 
atIndexes:indexSet forDrop:info dropOperation:operation];
     
     [self _resetAfterChange:didInsert];
     

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