Revision: 28779
http://sourceforge.net/p/bibdesk/svn/28779
Author: hofman
Date: 2024-02-20 17:51:16 +0000 (Tue, 20 Feb 2024)
Log Message:
-----------
return nil for hitTest: in subviews of fileview used only for drawing
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2024-02-20
17:01:31 UTC (rev 28778)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2024-02-20
17:51:16 UTC (rev 28779)
@@ -3238,9 +3238,6 @@
{
_fvFlags.isMouseDown = YES;
- //apparently the view does not become first responder when it is not on top
- [[self window] makeFirstResponder:self];
-
NSPoint p = [event locationInWindow];
p = [self convertPoint:p fromView:nil];
_lastMouseDownLocInView = p;
@@ -4952,6 +4949,8 @@
- (BOOL)isFlipped { return YES; }
+- (NSView *)hitTest:(NSPoint)point { return nil; }
+
- (void)setBackgroundColor:(NSColor *)backgroundColor
{
if (backgroundColor != _backgroundColor) {
@@ -5021,6 +5020,8 @@
@implementation FVRubberBandView
+- (NSView *)hitTest:(NSPoint)point { return nil; }
+
- (void)drawRect:(NSRect)dirtyRect {
NSRect rect = [self bounds];
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.3] setFill];
@@ -5038,10 +5039,10 @@
@synthesize delegate=_delegate;
-- (BOOL)isFlipped {
- return YES;
-}
+- (BOOL)isFlipped { return YES; }
+- (NSView *)hitTest:(NSPoint)point { return nil; }
+
- (void)drawRect:(NSRect)dirtyRect {
[[self delegate] drawRect:dirtyRect inView:self];
}
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