Revision: 3991
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3991&view=rev
Author:   hofman
Date:     2008-06-08 07:12:48 -0700 (Sun, 08 Jun 2008)

Log Message:
-----------
reduce calls to remove all progress indicators from downlaods table

Modified Paths:
--------------
    trunk/SKDownloadController.m

Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m        2008-06-08 12:22:57 UTC (rev 3990)
+++ trunk/SKDownloadController.m        2008-06-08 14:12:48 UTC (rev 3991)
@@ -78,9 +78,10 @@
 - (NSString *)windowNibName { return @"DownloadsWindow"; }
 
 - (void)reloadTableView {
-    NSView *view;
-    while (view = [[tableView subviews] lastObject])
-        [view removeFromSuperview];
+    NSEnumerator *downloadEnum = [downloads objectEnumerator];
+    SKDownload *download;
+    while (download = [downloadEnum nextObject])
+        [[download progressIndicator] removeFromSuperview];
     [tableView reloadData];
 }
 
@@ -159,7 +160,7 @@
     }
     if (download && [download status] == SKDownloadStatusCanceled) {
         [download resumeDownload];
-        [self reloadTableView];
+        [tableView reloadData];
         [self updateButtons];
     }
 }
@@ -244,7 +245,7 @@
 #pragma mark SKDownloadDelegate
 
 - (void)downloadDidStart:(SKDownload *)download {
-    [self reloadTableView];
+    [tableView reloadData];
     [self updateButtons];
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to