Revision: 5086
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5086&view=rev
Author:   hofman
Date:     2008-12-23 12:08:05 +0000 (Tue, 23 Dec 2008)

Log Message:
-----------
reuse array of keys

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

Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m  2008-12-23 11:23:34 UTC (rev 5085)
+++ trunk/SKDownload.m  2008-12-23 12:08:05 UTC (rev 5086)
@@ -61,11 +61,13 @@
 }
 
 + (void)initialize {
-    [self setKeys:[NSArray arrayWithObjects:@"filePath", nil] 
triggerChangeNotificationsForDependentKey:@"fileName"];
-    [self setKeys:[NSArray arrayWithObjects:@"filePath", nil] 
triggerChangeNotificationsForDependentKey:@"fileIcon"];
-    [self setKeys:[NSArray arrayWithObjects:SKDownloadStatusKey, nil] 
triggerChangeNotificationsForDependentKey:@"canCancel"];
-    [self setKeys:[NSArray arrayWithObjects:SKDownloadStatusKey, nil] 
triggerChangeNotificationsForDependentKey:@"canRemove"];
-    [self setKeys:[NSArray arrayWithObjects:SKDownloadStatusKey, nil] 
triggerChangeNotificationsForDependentKey:@"canResume"];
+    NSArray *keys = [NSArray arrayWithObjects:@"filePath", nil];
+    [self setKeys:keys triggerChangeNotificationsForDependentKey:@"fileName"];
+    [self setKeys:keys triggerChangeNotificationsForDependentKey:@"fileIcon"];
+    keys = [NSArray arrayWithObjects:SKDownloadStatusKey, nil];
+    [self setKeys:keys triggerChangeNotificationsForDependentKey:@"canCancel"];
+    [self setKeys:keys triggerChangeNotificationsForDependentKey:@"canRemove"];
+    [self setKeys:keys triggerChangeNotificationsForDependentKey:@"canResume"];
     [self setKeys:[self infoKeys] 
triggerChangeNotificationsForDependentKey:@"info"];
     OBINITIALIZE;
 }


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

------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to