Revision: 29175
http://sourceforge.net/p/bibdesk/svn/29175
Author: hofman
Date: 2025-04-23 16:56:12 +0000 (Wed, 23 Apr 2025)
Log Message:
-----------
Don't compile methods that won't be relevant in some supported OS versions
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-23
16:36:32 UTC (rev 29174)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-23
16:56:12 UTC (rev 29175)
@@ -334,6 +334,7 @@
[[NSUserDefaults standardUserDefaults] setBool:YES
forKey:@"QLEnableTextSelection"];
}
+#if !defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_7
+ (NSColor *)defaultBackgroundColor
{
NSColor *color = nil;
@@ -353,6 +354,7 @@
}
return color;
}
+#endif
+ (BOOL)accessInstanceVariablesDirectly { return NO; }
@@ -361,7 +363,9 @@
if (_backgroundView == nil) {
_backgroundView = [[FVBackgroundView alloc] initWithFrame:frame];
+#if !defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_7
[_backgroundView setBackgroundColor:[[self class]
defaultBackgroundColor]];
+#endif
[_backgroundView setAutoresizingMask:NSViewWidthSizable |
NSViewHeightSizable];
[self addSubview:_backgroundView];
}
@@ -1778,7 +1782,9 @@
[self _updateProgressIndicatorFrames];
// grid may have changed, so do a full redisplay
+#if DEBUG_GRID
[self setNeedsDisplay:YES];
+#endif
[_contentView setNeedsDisplay:YES];
/*
@@ -4994,6 +5000,8 @@
- (NSView *)hitTest:(NSPoint)point { return nil; }
+#if !defined(MAC_OS_X_VERSION_10_10) || MAC_OS_X_VERSION_MIN_REQUIRED <
MAC_OS_X_VERSION_10_10
+
- (void)_handleKeyOrMainStateNotification:(NSNotification *)note {
[self setNeedsDisplay:YES];
}
@@ -5048,6 +5056,19 @@
}
}
+#else
+
+- (void)setBackgroundColor:(NSColor *)backgroundColor {
+ if (backgroundColor != _backgroundColor) {
+ _backgroundColor = backgroundColor;
+
+ [self _updateVisualEffectViewIfNeeded];
+ [self setNeedsDisplay:YES];
+ }
+}
+
+#endif
+
- (void)drawRect:(NSRect)rect
{
if ([[self subviews] count]) {
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