Revision: 23930
http://sourceforge.net/p/bibdesk/svn/23930
Author: hofman
Date: 2019-07-03 15:30:34 +0000 (Wed, 03 Jul 2019)
Log Message:
-----------
don't use unimplemented tag for index in view
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 2019-07-03
15:17:37 UTC (rev 23929)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2019-07-03
15:30:34 UTC (rev 23930)
@@ -2593,7 +2593,7 @@
NSURL *url;
while ((url = [urlEnum nextObject])) {
FVProgressIndicatorCell *progressIndicator =
[_progressIndicators objectForKey:url];
- NSUInteger anIndex = [progressIndicator tag];
+ 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];
@@ -4061,7 +4061,7 @@
for (FVProgressIndicatorCell *progressIndicator in [_progressIndicators
allValues]) {
if ([progressIndicator style] == FVProgressIndicatorIndeterminate) {
[progressIndicator animate];
- if ([self _getGridRow:&r column:&c ofIndex:[progressIndicator
tag]])
+ if ([self _getGridRow:&r column:&c ofIndex:[progressIndicator
indexInView]])
[self _setNeedsDisplayForIconInRow:r column:c];
}
}
@@ -4177,7 +4177,7 @@
- (void)addProgressIndicatorForURL:(NSURL *)aURL atIndex:(NSUInteger)anIndex {
FVProgressIndicatorCell *progressIndicator = [[FVProgressIndicatorCell
alloc] init];
- [progressIndicator setTag:anIndex];
+ [progressIndicator setIndexInView:anIndex];
[_progressIndicators setObject:progressIndicator forKey:aURL];
[progressIndicator release];
NSUInteger r, c;
@@ -4214,9 +4214,9 @@
- (void)moveProgressIndicatorForURL:(NSURL *)aURL toIndex:(NSUInteger)anIndex {
FVProgressIndicatorCell *progressIndicator = [_progressIndicators
objectForKey:aURL];
- NSUInteger r, c, oldIndex = [progressIndicator tag];
+ NSUInteger r, c, oldIndex = [progressIndicator indexInView];
if (progressIndicator && oldIndex != anIndex) {
- [progressIndicator setTag:anIndex];
+ [progressIndicator setIndexInView:anIndex];
if ([self _getGridRow:&r column:&c ofIndex:oldIndex])
[self _setNeedsDisplayForIconInRow:r column:c];
if ([self _getGridRow:&r column:&c ofIndex:anIndex])
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.h
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.h
2019-07-03 15:17:37 UTC (rev 23929)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.h
2019-07-03 15:30:34 UTC (rev 23930)
@@ -58,6 +58,7 @@
CGFloat _currentProgress;
NSInteger _currentStep;
FVProgressIndicatorStyle _style;
+ NSUInteger _indexInView;
}
- (void)setCurrentProgress:(CGFloat)progress;
@@ -67,6 +68,9 @@
- (FVProgressIndicatorStyle)style;
- (void)setStyle:(FVProgressIndicatorStyle)style;
+- (NSUInteger)indexInView;
+- (void)setIndexInView:(NSUInteger)index;
+
- (void)animate;
@end
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.m
2019-07-03 15:17:37 UTC (rev 23929)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicatorCell.m
2019-07-03 15:30:34 UTC (rev 23930)
@@ -58,6 +58,9 @@
- (FVProgressIndicatorStyle)style {return _style; }
- (void)setStyle:(FVProgressIndicatorStyle)style { _style = style; }
+- (NSUInteger)indexInView { return _indexInView; }
+- (void)setIndexInView:(NSUInteger)index { _indexInView = index; }
+
- (void)animate
{
if (_style == FVProgressIndicatorIndeterminate)
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