Revision: 30107
          http://sourceforge.net/p/bibdesk/svn/30107
Author:   hofman
Date:     2026-03-04 17:07:55 +0000 (Wed, 04 Mar 2026)
Log Message:
-----------
return bool from insertion dataSource method

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

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.h
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.h      2026-03-04 
16:56:39 UTC (rev 30106)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.h      2026-03-04 
17:07:55 UTC (rev 30107)
@@ -109,8 +109,9 @@
  */
 
 /** Implement to do something (or nothing) with the dropped URLs
+ @return YES if the insertion occurred.
  */
-- (void)fileView:(FVFileView *)aFileView insertURLs:(NSArray *)absoluteURLs 
atIndexes:(NSIndexSet *)aSet forDrop:(id <NSDraggingInfo>)info 
dropOperation:(FVDropOperation)operation;
+- (BOOL)fileView:(FVFileView *)aFileView insertURLs:(NSArray *)absoluteURLs 
atIndexes:(NSIndexSet *)aSet forDrop:(id <NSDraggingInfo>)info 
dropOperation:(FVDropOperation)operation;
 
 /** The datasource may replace the files at the given indexes
  @return YES if the replacement occurred.

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-03-04 
16:56:39 UTC (rev 30106)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2026-03-04 
17:07:55 UTC (rev 30107)
@@ -2735,11 +2735,11 @@
     
     _fvFlags.needsReload = YES;
     
-    [[self dataSource] fileView:self insertURLs:absoluteURLs 
atIndexes:indexSet forDrop:info dropOperation:operation];
+    BOOL didInsert = [[self dataSource] fileView:self insertURLs:absoluteURLs 
atIndexes:indexSet forDrop:info dropOperation:operation];
     
-    [self _resetAfterChange:YES];
+    [self _resetAfterChange:didInsert];
     
-    return YES;
+    return didInsert;
 }
 
 - (BOOL)_deleteURLsAtIndexes:(NSIndexSet *)indexSet

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