Revision: 4453
http://skim-app.svn.sourceforge.net/skim-app/?rev=4453&view=rev
Author: hofman
Date: 2008-08-26 18:19:01 +0000 (Tue, 26 Aug 2008)
Log Message:
-----------
add a string constant for downloads key
Modified Paths:
--------------
trunk/SKDownloadController.m
Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m 2008-08-26 17:07:43 UTC (rev 4452)
+++ trunk/SKDownloadController.m 2008-08-26 18:19:01 UTC (rev 4453)
@@ -48,6 +48,8 @@
static NSString *SKDownloadsWindowFrameAutosaveName = @"SKDownloadsWindow";
+static NSString *SKDownloadControllerDownloadsKey = @"downloads";
+
static NSString *SKDownloadsWindowCancelColumnIdentifier = @"cancel";
static NSString *SKDownloadsWindowResumeColumnIdentifier = @"resume";
@@ -97,7 +99,7 @@
if (aURL) {
SKDownload *download = [[[SKDownload alloc] initWithURL:aURL
delegate:self] autorelease];
int row = [self countOfDownloads];
- [[self mutableArrayValueForKey:@"downloads"] addObject:download];
+ [[self mutableArrayValueForKey:SKDownloadControllerDownloadsKey]
addObject:download];
[download start];
[tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:row]
byExtendingSelection:NO];
[tableView scrollRowToVisible:row];
@@ -179,7 +181,7 @@
}
if (download)
- [[self mutableArrayValueForKey:@"downloads"] removeObject:download];
+ [[self mutableArrayValueForKey:SKDownloadControllerDownloadsKey]
removeObject:download];
}
- (IBAction)paste:(id)sender {
@@ -261,7 +263,7 @@
if ([[NSUserDefaults standardUserDefaults]
boolForKey:SKAutoRemoveFinishedDownloadsKey]) {
[[download retain] autorelease];
- [[self mutableArrayValueForKey:@"downloads"]
removeObject:download];
+ [[self mutableArrayValueForKey:SKDownloadControllerDownloadsKey]
removeObject:download];
// for the document to note that the file has been deleted
[document setFileURL:[NSURL fileURLWithPath:[download filePath]]];
if ([self countOfDownloads] == 0 && [[NSUserDefaults
standardUserDefaults] boolForKey:SKAutoCloseDownloadsWindowKey])
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