Revision: 28300
http://sourceforge.net/p/bibdesk/svn/28300
Author: hofman
Date: 2023-06-07 09:34:23 +0000 (Wed, 07 Jun 2023)
Log Message:
-----------
no need for progress indicator in file view to be an NSCell subclass, we don't
use any method from NSCell
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.h
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2023-06-06
22:23:25 UTC (rev 28299)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2023-06-07
09:34:23 UTC (rev 28300)
@@ -2698,7 +2698,7 @@
NSUInteger anIndex = [progressIndicator indexInView];
// we only draw a if there's an active download for this
URL/index pair
if (anIndex < [self numberOfIcons] && [[self
URLAtIndex:anIndex] isEqual:url])
- [progressIndicator drawWithFrame:[self
_rectOfProgressIndicatorForIconAtIndex:anIndex] inView:self];
+ [progressIndicator drawWithFrame:[self
_rectOfProgressIndicatorForIconAtIndex:anIndex]];
}
}
}
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.h
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.h
2023-06-06 22:23:25 UTC (rev 28299)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.h
2023-06-07 09:34:23 UTC (rev 28300)
@@ -52,7 +52,7 @@
};
typedef NSInteger FVProgressIndicatorStyle;
-@interface FVProgressIndicatorCell : NSCell
+@interface FVProgressIndicatorCell : NSObject
{
@private
CGFloat _currentProgress;
@@ -61,8 +61,8 @@
NSUInteger _indexInView;
}
+- (CGFloat)currentProgress;
- (void)setCurrentProgress:(CGFloat)progress;
-- (CGFloat)currentProgress;
// default is FVProgressIndicatorDeterminate
- (FVProgressIndicatorStyle)style;
@@ -73,4 +73,6 @@
- (void)animate;
+- (void)drawWithFrame:(NSRect)aRect;
+
@end
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.m
2023-06-06 22:23:25 UTC (rev 28299)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.m
2023-06-07 09:34:23 UTC (rev 28300)
@@ -76,7 +76,7 @@
_currentStep = (_currentStep + 1) % numSteps;
}
-- (void)drawWithFrame:(NSRect)aRect inView:(NSView *)aView
+- (void)drawWithFrame:(NSRect)aRect
{
CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort];
CGContextSaveGState(context);
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