Revision: 4568
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4568&view=rev
Author:   hofman
Date:     2008-09-05 22:52:36 +0000 (Fri, 05 Sep 2008)

Log Message:
-----------
Only set one column for display when adding or removing a download

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

Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m        2008-09-05 19:54:27 UTC (rev 4567)
+++ trunk/SKDownloadController.m        2008-09-05 22:52:36 UTC (rev 4568)
@@ -46,8 +46,9 @@
 #import "NSString_SKExtensions.h"
 #import "NSMenu_SKExtensions.h"
 
-#define RESUME_COLUMN 2
-#define CANCEL_COLUMN 3
+#define PROGRESS_COLUMN 1
+#define RESUME_COLUMN   2
+#define CANCEL_COLUMN   3
 
 static NSString *SKDownloadsWindowFrameAutosaveName = @"SKDownloadsWindow";
 
@@ -126,7 +127,7 @@
 - (void)insertObject:(SKDownload *)download inDownloadsAtIndex:(unsigned 
int)anIndex {
     [downloads insertObject:download atIndex:anIndex];
     [downloads 
makeObjectsPerformSelector:@selector(removeProgressIndicatorFromSuperview)];
-    [tableView reloadData];
+    [tableView setNeedsDisplayInRect:[tableView rectOfRow:PROGRESS_COLUMN]];
 }
 
 - (void)removeObjectFromDownloadsAtIndex:(unsigned int)anIndex {
@@ -135,7 +136,7 @@
     [download cancel];
     [downloads removeObjectAtIndex:anIndex];
     [downloads 
makeObjectsPerformSelector:@selector(removeProgressIndicatorFromSuperview)];
-    [tableView reloadData];
+    [tableView setNeedsDisplayInRect:[tableView rectOfRow:PROGRESS_COLUMN]];
 }
 
 #pragma mark Actions


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to