Revision: 23932
          http://sourceforge.net/p/bibdesk/svn/23932
Author:   hofman
Date:     2019-07-03 16:47:58 +0000 (Wed, 03 Jul 2019)
Log Message:
-----------
Create progress indicator dictionar, enumerate the keys

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2019-07-03 
16:12:10 UTC (rev 23931)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2019-07-03 
16:47:58 UTC (rev 23932)
@@ -2589,7 +2589,7 @@
         }
         
         if ([_progressIndicators count]) {
-            NSEnumerator *urlEnum = [_progressIndicators objectEnumerator];
+            NSEnumerator *urlEnum = [_progressIndicators keyEnumerator];
             NSURL *url;
             while ((url = [urlEnum nextObject])) {
                 FVProgressIndicatorCell *progressIndicator = 
[_progressIndicators objectForKey:url];
@@ -4178,6 +4178,8 @@
 - (void)addProgressIndicatorForURL:(NSURL *)aURL atIndex:(NSUInteger)anIndex {
     FVProgressIndicatorCell *progressIndicator = [[FVProgressIndicatorCell 
alloc] init];
     [progressIndicator setIndexInView:anIndex];
+    if (_progressIndicators == nil)
+        _progressIndicators = [[NSMutableDictionary alloc] init];
     [_progressIndicators setObject:progressIndicator forKey:aURL];
     [progressIndicator release];
     NSUInteger r, c;

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

Reply via email to