Revision: 23954
http://sourceforge.net/p/bibdesk/svn/23954
Author: hofman
Date: 2019-07-06 21:55:44 +0000 (Sat, 06 Jul 2019)
Log Message:
-----------
method to clear all progress indicators in file view
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.h
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.h
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.h 2019-07-06
17:58:38 UTC (rev 23953)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.h 2019-07-06
21:55:44 UTC (rev 23954)
@@ -500,6 +500,11 @@
@param anIndex The index for the icon. */
- (void)removeProgressIndicatorForURL:(NSURL *)aURL
atIndex:(NSUInteger)anIndex;
+/** Removes all progress indicators.
+
+ This can be used when the delegate handles downloads and the progress
indicators need to be reset. */
+- (void)removeAllProgressIndicators;
+
@end
/** @var FVZoomInMenuItemTag
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2019-07-06
17:58:38 UTC (rev 23953)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2019-07-06
21:55:44 UTC (rev 23954)
@@ -4213,6 +4213,14 @@
[self _setNeedsDisplayForIconInRow:r column:c];
}
+- (void)removeAllProgressIndicators {
+ if ([_progressIndicators count] > 0) {
+ [_progressIndicators removeAllObjects];
+ [self _invalidateProgressTimer];
+ [self setNeedsDisplay:YES];
+ }
+}
+
#pragma mark Quick Look support
- (void)handlePreviewerWillClose:(NSNotification *)aNote
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