Ignore:
Timestamp:
Aug 15, 2008, 1:44:46 AM (13 years ago)
Author:
livings124
Message:

initial Sparkle 1.5 b5 commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r6511 r6529  
    250250       
    251251        [GrowlApplicationBridge setGrowlDelegate: self];
     252       
    252253        [[UKKQueue sharedFileWatcher] setDelegate: self];
     254       
     255        SUUpdater * updater = [SUUpdater sharedUpdater];
     256        [updater setDelegate: self];
     257        fUpdateInProgress = NO;
     258       
     259        //reset old Sparkle settings from previous versions
     260        [fDefaults removeObjectForKey: @"SUScheduledCheckInterval"];
     261        if ([fDefaults objectForKey: @"CheckForUpdates"])
     262        {
     263            [updater setAutomaticallyChecksForUpdates: [fDefaults boolForKey: @"CheckForUpdates"]];
     264            [fDefaults removeObjectForKey: @"CheckForUpdates"];
     265        }
    253266    }
    254267    return self;
     
    343356    [fSpeedLimitButton setToolTip: NSLocalizedString(@"Speed Limit overrides the total bandwidth limits with its own limits.",
    344357                                "Main window -> 2nd bottom left button (turtle) tooltip")];
    345    
    346     [fPrefsController setUpdater: fUpdater];
    347358   
    348359    [fTableView registerForDraggedTypes: [NSArray arrayWithObject: TORRENT_TABLE_VIEW_DATA_TYPE]];
     
    435446    [nc addObserver: self selector: @selector(torrentTableViewSelectionDidChange:)
    436447                    name: NSOutlineViewSelectionDidChangeNotification object: fTableView];
    437    
    438     [nc addObserver: self selector: @selector(prepareForUpdate:)
    439                     name: SUUpdaterWillRestartNotification object: nil];
    440     fUpdateInProgress = NO;
    441448   
    442449    [nc addObserver: self selector: @selector(autoSpeedLimitChange:)
     
    41854192}
    41864193
    4187 - (void) prepareForUpdate: (NSNotification *) notification
     4194- (void) updaterWillRelaunchApplication: (SUUpdater *) updater
    41884195{
    41894196    fUpdateInProgress = YES;
Note: See TracChangeset for help on using the changeset viewer.