Revision: 27649
          http://sourceforge.net/p/bibdesk/svn/27649
Author:   hofman
Date:     2022-06-19 09:19:39 +0000 (Sun, 19 Jun 2022)
Log Message:
-----------
revert changes to updater

Modified Paths:
--------------
    
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/Autoupdate/Autoupdate.m
    trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.h
    trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.m
    
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUUIBasedUpdateDriver.m

Modified: 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/Autoupdate/Autoupdate.m
===================================================================
--- 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/Autoupdate/Autoupdate.m   
    2022-06-19 06:30:18 UTC (rev 27648)
+++ 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/Autoupdate/Autoupdate.m   
    2022-06-19 09:19:39 UTC (rev 27649)
@@ -31,9 +31,9 @@
  * parentProcessId - process identifier of the host before launching us
  * updateFolderPath - path to update folder (i.e, temporary directory 
containing the new update)
  * shouldRelaunch - indicates if the new installed app should re-launched
- * statusFrame - the frame to use for the status window as a string
+ * shouldShowUI - indicates if we should show the status window when 
installing the update
  */
-- (instancetype)initWithHostPath:(NSString *)hostPath relaunchPath:(NSString 
*)relaunchPath parentProcessId:(pid_t)parentProcessId 
updateFolderPath:(NSString *)updateFolderPath 
shouldRelaunch:(BOOL)shouldRelaunch shouldShowUI:(BOOL)shouldShowUI 
statusFrame:(NSString *)statusFrame;
+- (instancetype)initWithHostPath:(NSString *)hostPath relaunchPath:(NSString 
*)relaunchPath parentProcessId:(pid_t)parentProcessId 
updateFolderPath:(NSString *)updateFolderPath 
shouldRelaunch:(BOOL)shouldRelaunch shouldShowUI:(BOOL)shouldShowUI;
 
 @end
 
@@ -47,7 +47,6 @@
 @property (nonatomic, copy) NSString *relaunchPath;
 @property (nonatomic, assign) BOOL shouldRelaunch;
 @property (nonatomic, assign) BOOL shouldShowUI;
-@property (nonatomic, copy) NSString *statusFrame;
 
 @property (nonatomic, assign) BOOL isTerminating;
 
@@ -63,9 +62,8 @@
 @synthesize shouldRelaunch = _shouldRelaunch;
 @synthesize shouldShowUI = _shouldShowUI;
 @synthesize isTerminating = _isTerminating;
-@synthesize statusFrame = _statusFrame;
 
-- (instancetype)initWithHostPath:(NSString *)hostPath relaunchPath:(NSString 
*)relaunchPath parentProcessId:(pid_t)parentProcessId 
updateFolderPath:(NSString *)updateFolderPath 
shouldRelaunch:(BOOL)shouldRelaunch shouldShowUI:(BOOL)shouldShowUI 
statusFrame:(NSString *)statusFrame
+- (instancetype)initWithHostPath:(NSString *)hostPath relaunchPath:(NSString 
*)relaunchPath parentProcessId:(pid_t)parentProcessId 
updateFolderPath:(NSString *)updateFolderPath 
shouldRelaunch:(BOOL)shouldRelaunch shouldShowUI:(BOOL)shouldShowUI
 {
     if (!(self = [super init])) {
         return nil;
@@ -78,8 +76,7 @@
     self.updateFolderPath = updateFolderPath;
     self.shouldRelaunch = shouldRelaunch;
     self.shouldShowUI = shouldShowUI;
-    self.statusFrame = statusFrame;
-
+    
     return self;
 }
 
@@ -140,8 +137,6 @@
         [self.statusController setButtonTitle:SULocalizedString(@"Cancel 
Update", @"") target:nil action:Nil isDefault:NO];
         [self.statusController 
beginActionWithTitle:SULocalizedString(@"Installing update...", @"")
                                    maxProgressValue:100 statusText: @""];
-        if (self.statusFrame.length)
-            [self.statusController.window 
setFrame:NSRectFromString(self.statusFrame) display:NO];
         [self.statusController showWindow:self];
     }
     
@@ -254,8 +249,7 @@
                                                             
parentProcessId:[[args objectAtIndex:3] intValue]
                                                            
updateFolderPath:[args objectAtIndex:4]
                                                              
shouldRelaunch:(args.count > 5) ? [[args objectAtIndex:5] boolValue] : YES
-                                                               
shouldShowUI:shouldShowUI
-                                                                
statusFrame:(args.count > 7) ? [args objectAtIndex:7] : nil];
+                                                               
shouldShowUI:shouldShowUI];
         [application setDelegate:appInstaller];
         [application run];
     }

Modified: 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.h
===================================================================
--- trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.h 
2022-06-19 06:30:18 UTC (rev 27648)
+++ trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.h 
2022-06-19 09:19:39 UTC (rev 27649)
@@ -19,7 +19,6 @@
 @property (strong, readonly) SUAppcastItem *updateItem;
 @property (strong, readonly) SPUDownloader *download;
 @property (copy, readonly) NSString *downloadPath;
-@property (copy, readonly) NSString *statusFrame;
 
 - (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host;
 

Modified: 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.m
===================================================================
--- trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.m 
2022-06-19 06:30:18 UTC (rev 27648)
+++ trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUBasicUpdateDriver.m 
2022-06-19 09:19:39 UTC (rev 27649)
@@ -55,8 +55,6 @@
 
 @synthesize updateValidator = _updateValidator;
 
-@dynamic statusFrame;
-
 - (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost
 {
     [super checkForUpdatesAtURL:URL host:aHost];
@@ -471,11 +469,6 @@
     return (!updater.delegate || ![updater.delegate 
respondsToSelector:@selector(updaterShouldRelaunchApplication:)] || 
[updater.delegate updaterShouldRelaunchApplication:self.updater]);
 }
 
-- (NSString *)statusFrame
-{
-    return @"";
-}
-
 - (void)installWithToolAndRelaunch:(BOOL)relaunch 
displayingUserInterface:(BOOL)showUI
 {
     assert(self.updateItem);
@@ -609,8 +602,7 @@
                                                                     [NSString 
stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]],
                                                                     
self.tempDir,
                                                                     relaunch ? 
@"1" : @"0",
-                                                                    showUI ? 
@"1" : @"0",
-                                                                    
self.statusFrame]];
+                                                                    showUI ? 
@"1" : @"0"]];
     [self terminateApp];
 }
 

Modified: 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUUIBasedUpdateDriver.m
===================================================================
--- 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUUIBasedUpdateDriver.m   
    2022-06-19 06:30:18 UTC (rev 27648)
+++ 
trunk/bibdesk_vendorsrc/andymatuschak/Sparkle/Sparkle/SUUIBasedUpdateDriver.m   
    2022-06-19 09:19:39 UTC (rev 27649)
@@ -286,13 +286,6 @@
     [self installWithToolAndRelaunch:YES];
 }
 
-- (NSString *)statusFrame
-{
-    if (self.statusController == nil)
-        return @"";
-    return NSStringFromRect(self.statusController.window.frame);
-}
-
 - (void)installWithToolAndRelaunch:(BOOL)relaunch
 {
     [self.statusController beginActionWithTitle:SULocalizedString(@"Installing 
update...", @"Take care not to overflow the status window.") 
maxProgressValue:0.0 statusText:nil];

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to