Revision: 28296
          http://sourceforge.net/p/bibdesk/svn/28296
Author:   hofman
Date:     2023-06-06 17:09:54 +0000 (Tue, 06 Jun 2023)
Log Message:
-----------
check for icon index rather than URL when we don't use the URL

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

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2023-06-06 
16:43:50 UTC (rev 28295)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2023-06-06 
17:09:54 UTC (rev 28296)
@@ -2558,7 +2558,7 @@
                     [[NSColor redColor] setFill];
                 else
                     [[NSColor greenColor] setFill];
-                NSFrameRect(NSUnionRect(NSInsetRect(fileRect, -shadowBlur, 
0.0), NSInsetRect(textRect, 2.0, 0.0)));                
+                NSFrameRect(NSUnionRect(NSInsetRect(fileRect, -shadowBlur, 
0.0), NSInsetRect(textRect, 2.0, 0.0)));
                 [NSGraphicsContext restoreGraphicsState];
 #endif
             }
@@ -3329,12 +3329,12 @@
 // this method and shouldDelayWindowOrderingForEvent: are overriden to allow 
dragging from the view without making our window key
 - (BOOL)acceptsFirstMouse:(NSEvent *)event
 {
-    return ([self _URLAtPoint:[self convertPoint:[event locationInWindow] 
fromView:nil]] != nil);
+    return ([self _indexAtPoint:[self convertPoint:[event locationInWindow] 
fromView:nil] dropOperation:NULL] != NSNotFound);
 }
 
 - (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)event
 {
-    return ([self _URLAtPoint:[self convertPoint:[event locationInWindow] 
fromView:nil]] != nil);
+    return ([self _indexAtPoint:[self convertPoint:[event locationInWindow] 
fromView:nil] dropOperation:NULL] != NSNotFound);
 }
 
 - (void)keyDown:(NSEvent *)event
@@ -3441,7 +3441,7 @@
         _lastClickedIndex = i;
         
         // change selection first, as Finder does
-        if ([event clickCount] > 1 && [self _URLAtPoint:p] != nil) {
+        if ([event clickCount] > 1 && i != NSNotFound) {
             if (flags & NSAlternateKeyMask) {
                 [self _previewURL:[self _URLAtPoint:p] forIconInRect:[self 
_rectOfIconInRow:r column:c]];
             } else {

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