Revision: 4550
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4550&view=rev
Author:   hofman
Date:     2008-09-04 22:09:57 +0000 (Thu, 04 Sep 2008)

Log Message:
-----------
Manage enabled state of Download clear button manually, because binding does 
not properly observe the objects on which it depends.

Modified Paths:
--------------
    trunk/Dutch.lproj/DownloadsWindow.nib/classes.nib
    trunk/Dutch.lproj/DownloadsWindow.nib/info.nib
    trunk/Dutch.lproj/DownloadsWindow.nib/keyedobjects.nib
    trunk/English.lproj/DownloadsWindow.nib/classes.nib
    trunk/English.lproj/DownloadsWindow.nib/info.nib
    trunk/English.lproj/DownloadsWindow.nib/keyedobjects.nib
    trunk/German.lproj/DownloadsWindow.nib/classes.nib
    trunk/German.lproj/DownloadsWindow.nib/info.nib
    trunk/German.lproj/DownloadsWindow.nib/keyedobjects.nib
    trunk/Italian.lproj/DownloadsWindow.nib/classes.nib
    trunk/Italian.lproj/DownloadsWindow.nib/info.nib
    trunk/Italian.lproj/DownloadsWindow.nib/keyedobjects.nib
    trunk/SKDownloadController.m

Modified: trunk/Dutch.lproj/DownloadsWindow.nib/classes.nib
===================================================================
--- trunk/Dutch.lproj/DownloadsWindow.nib/classes.nib   2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/Dutch.lproj/DownloadsWindow.nib/classes.nib   2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -14,14 +14,6 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>SKProgressCell</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSTextFieldCell</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
                        <string>NSUserDefaultsController</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
@@ -30,7 +22,7 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSView</string>
+                       <string>NSWindowController</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
                        <key>SUPERCLASS</key>
@@ -45,29 +37,8 @@
                        <string>NSObject</string>
                </dict>
                <dict>
-                       <key>CLASS</key>
-                       <string>NSWindowController</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSResponder</string>
-               </dict>
-               <dict>
                        <key>ACTIONS</key>
                        <dict>
-                               <key></key>
-                               <string>id</string>
-                       </dict>
-                       <key>CLASS</key>
-                       <string>FirstResponder</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>ACTIONS</key>
-                       <dict>
                                <key>changeDashPattern</key>
                                <string>id</string>
                                <key>changeEndLineStyle</key>
@@ -86,14 +57,6 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSCell</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
                        <string>NSWindow</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
@@ -141,8 +104,45 @@
                        <string>NSView</string>
                </dict>
                <dict>
+                       <key>CLASS</key>
+                       <string>SKProgressCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSTextFieldCell</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
                        <key>ACTIONS</key>
                        <dict>
+                               <key></key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>FirstResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
                                <key>copy</key>
                                <string>id</string>
                                <key>delete</key>

Modified: trunk/Dutch.lproj/DownloadsWindow.nib/info.nib
===================================================================
--- trunk/Dutch.lproj/DownloadsWindow.nib/info.nib      2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/Dutch.lproj/DownloadsWindow.nib/info.nib      2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -9,7 +9,9 @@
        <key>IBOldestOS</key>
        <integer>5</integer>
        <key>IBOpenObjects</key>
-       <array/>
+       <array>
+               <integer>27</integer>
+       </array>
        <key>IBSystem Version</key>
        <string>9E17</string>
        <key>targetFramework</key>

Modified: trunk/English.lproj/DownloadsWindow.nib/classes.nib
===================================================================
--- trunk/English.lproj/DownloadsWindow.nib/classes.nib 2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/English.lproj/DownloadsWindow.nib/classes.nib 2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -22,19 +22,19 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSWindowController</string>
+                       <string>NSMenu</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
                        <key>SUPERCLASS</key>
-                       <string>NSResponder</string>
+                       <string>NSObject</string>
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSMenu</string>
+                       <string>NSWindowController</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
                        <key>SUPERCLASS</key>
-                       <string>NSObject</string>
+                       <string>NSResponder</string>
                </dict>
                <dict>
                        <key>ACTIONS</key>

Modified: trunk/English.lproj/DownloadsWindow.nib/info.nib
===================================================================
--- trunk/English.lproj/DownloadsWindow.nib/info.nib    2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/English.lproj/DownloadsWindow.nib/info.nib    2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -10,8 +10,8 @@
        <integer>5</integer>
        <key>IBOpenObjects</key>
        <array>
+               <integer>27</integer>
                <integer>30</integer>
-               <integer>6</integer>
        </array>
        <key>IBSystem Version</key>
        <string>9E17</string>

Modified: trunk/German.lproj/DownloadsWindow.nib/classes.nib
===================================================================
--- trunk/German.lproj/DownloadsWindow.nib/classes.nib  2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/German.lproj/DownloadsWindow.nib/classes.nib  2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -14,14 +14,6 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>SKProgressCell</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSTextFieldCell</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
                        <string>NSUserDefaultsController</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
@@ -30,7 +22,7 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSView</string>
+                       <string>NSWindowController</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
                        <key>SUPERCLASS</key>
@@ -45,29 +37,8 @@
                        <string>NSObject</string>
                </dict>
                <dict>
-                       <key>CLASS</key>
-                       <string>NSWindowController</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSResponder</string>
-               </dict>
-               <dict>
                        <key>ACTIONS</key>
                        <dict>
-                               <key></key>
-                               <string>id</string>
-                       </dict>
-                       <key>CLASS</key>
-                       <string>FirstResponder</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>ACTIONS</key>
-                       <dict>
                                <key>changeDashPattern</key>
                                <string>id</string>
                                <key>changeEndLineStyle</key>
@@ -86,14 +57,6 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSCell</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
                        <string>NSWindow</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
@@ -141,8 +104,45 @@
                        <string>NSView</string>
                </dict>
                <dict>
+                       <key>CLASS</key>
+                       <string>SKProgressCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSTextFieldCell</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
                        <key>ACTIONS</key>
                        <dict>
+                               <key></key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>FirstResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
                                <key>copy</key>
                                <string>id</string>
                                <key>delete</key>

Modified: trunk/German.lproj/DownloadsWindow.nib/info.nib
===================================================================
--- trunk/German.lproj/DownloadsWindow.nib/info.nib     2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/German.lproj/DownloadsWindow.nib/info.nib     2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -3,13 +3,15 @@
 <plist version="1.0">
 <dict>
        <key>IBFramework Version</key>
-       <string>670</string>
+       <string>672</string>
        <key>IBLastKnownRelativeProjectPath</key>
        <string>../Skim.xcodeproj</string>
        <key>IBOldestOS</key>
        <integer>5</integer>
        <key>IBOpenObjects</key>
-       <array/>
+       <array>
+               <integer>27</integer>
+       </array>
        <key>IBSystem Version</key>
        <string>9E17</string>
        <key>targetFramework</key>

Modified: trunk/Italian.lproj/DownloadsWindow.nib/classes.nib
===================================================================
--- trunk/Italian.lproj/DownloadsWindow.nib/classes.nib 2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/Italian.lproj/DownloadsWindow.nib/classes.nib 2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -14,14 +14,6 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>SKProgressCell</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSTextFieldCell</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
                        <string>NSUserDefaultsController</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
@@ -30,7 +22,7 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSView</string>
+                       <string>NSWindowController</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
                        <key>SUPERCLASS</key>
@@ -45,29 +37,8 @@
                        <string>NSObject</string>
                </dict>
                <dict>
-                       <key>CLASS</key>
-                       <string>NSWindowController</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSResponder</string>
-               </dict>
-               <dict>
                        <key>ACTIONS</key>
                        <dict>
-                               <key></key>
-                               <string>id</string>
-                       </dict>
-                       <key>CLASS</key>
-                       <string>FirstResponder</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>ACTIONS</key>
-                       <dict>
                                <key>changeDashPattern</key>
                                <string>id</string>
                                <key>changeEndLineStyle</key>
@@ -86,14 +57,6 @@
                </dict>
                <dict>
                        <key>CLASS</key>
-                       <string>NSCell</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
                        <string>NSWindow</string>
                        <key>LANGUAGE</key>
                        <string>ObjC</string>
@@ -141,8 +104,45 @@
                        <string>NSView</string>
                </dict>
                <dict>
+                       <key>CLASS</key>
+                       <string>SKProgressCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSTextFieldCell</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSView</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSResponder</string>
+               </dict>
+               <dict>
                        <key>ACTIONS</key>
                        <dict>
+                               <key></key>
+                               <string>id</string>
+                       </dict>
+                       <key>CLASS</key>
+                       <string>FirstResponder</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>CLASS</key>
+                       <string>NSCell</string>
+                       <key>LANGUAGE</key>
+                       <string>ObjC</string>
+                       <key>SUPERCLASS</key>
+                       <string>NSObject</string>
+               </dict>
+               <dict>
+                       <key>ACTIONS</key>
+                       <dict>
                                <key>copy</key>
                                <string>id</string>
                                <key>delete</key>

Modified: trunk/Italian.lproj/DownloadsWindow.nib/info.nib
===================================================================
--- trunk/Italian.lproj/DownloadsWindow.nib/info.nib    2008-09-04 16:30:59 UTC 
(rev 4549)
+++ trunk/Italian.lproj/DownloadsWindow.nib/info.nib    2008-09-04 22:09:57 UTC 
(rev 4550)
@@ -3,13 +3,15 @@
 <plist version="1.0">
 <dict>
        <key>IBFramework Version</key>
-       <string>670</string>
+       <string>672</string>
        <key>IBLastKnownRelativeProjectPath</key>
        <string>../Skim.xcodeproj</string>
        <key>IBOldestOS</key>
        <integer>5</integer>
        <key>IBOpenObjects</key>
-       <array/>
+       <array>
+               <integer>27</integer>
+       </array>
        <key>IBSystem Version</key>
        <string>9E17</string>
        <key>targetFramework</key>

Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m        2008-09-04 16:30:59 UTC (rev 4549)
+++ trunk/SKDownloadController.m        2008-09-04 22:09:57 UTC (rev 4550)
@@ -85,9 +85,15 @@
 
 - (unsigned)retainCount { return UINT_MAX; }
 
+- (void)updateClearButton {
+    [clearButton setEnabled:[downloads count] > 0 && [[downloads 
valueForKeyPath:@"@min.canCancel"] boolValue] == NO];
+}
+
 - (void)windowDidLoad {
     [self setWindowFrameAutosaveName:SKDownloadsWindowFrameAutosaveName];
     
+    [self updateClearButton];
+    
     SKTypeSelectHelper *typeSelectHelper = [[[SKTypeSelectHelper alloc] init] 
autorelease];
     [typeSelectHelper setDataSource:self];
     [tableView setTypeSelectHelper:typeSelectHelper];
@@ -247,6 +253,7 @@
     unsigned int row = [downloads indexOfObject:download];
     if (row != NSNotFound)
         [tableView setNeedsDisplayInRect:[tableView rectOfRow:row]];
+    [self updateClearButton];
 }
 
 - (void)downloadDidStart:(SKDownload *)download {


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