initial Sparkle 1.5 b5 commit

This commit is contained in:
Mitchell Livingston
2008-08-15 01:44:46 +00:00
parent 30a8c07e00
commit 2bf3559d13
106 changed files with 2412 additions and 83 deletions

View File

@@ -41,8 +41,6 @@
#define RPC_IP_ADD_TAG 0
#define RPC_IP_REMOVE_TAG 1
#define UPDATE_SECONDS 86400
#define TOOLBAR_GENERAL @"TOOLBAR_GENERAL"
#define TOOLBAR_TRANSFERS @"TOOLBAR_TRANSFERS"
#define TOOLBAR_BANDWIDTH @"TOOLBAR_BANDWIDTH"
@@ -101,9 +99,6 @@
[fDefaults removeObjectForKey: @"DownloadChoice"];
}
//set check for update to right value
[self setCheckForUpdate: nil];
//set auto import
NSString * autoPath;
if ([fDefaults boolForKey: @"AutoImport"] && (autoPath = [fDefaults stringForKey: @"AutoImportDirectory"]))
@@ -237,11 +232,6 @@
tr_free(rpcPassword);
}
- (void) setUpdater: (SUUpdater *) updater
{
fUpdater = updater;
}
- (NSToolbarItem *) toolbar: (NSToolbar *) toolbar itemForItemIdentifier: (NSString *) ident willBeInsertedIntoToolbar: (BOOL) flag
{
NSToolbarItem * item = [[NSToolbarItem alloc] initWithItemIdentifier: ident];
@@ -577,21 +567,13 @@
- (void) resetWarnings: (id) sender
{
[fDefaults setBool: YES forKey: @"WarningDuplicate"];
[fDefaults setBool: YES forKey: @"WarningRemainingSpace"];
[fDefaults setBool: YES forKey: @"WarningFolderDataSameName"];
[fDefaults setBool: YES forKey: @"WarningResetStats"];
[fDefaults setBool: YES forKey: @"WarningCreatorBlankAddress"];
[fDefaults setBool: YES forKey: @"WarningRemoveBuiltInTracker"];
[fDefaults setBool: YES forKey: @"WarningInvalidOpen"];
}
- (void) setCheckForUpdate: (id) sender
{
NSTimeInterval seconds = [fDefaults boolForKey: @"CheckForUpdates"] ? UPDATE_SECONDS : 0;
[fDefaults setInteger: seconds forKey: @"SUScheduledCheckInterval"];
if (fUpdater)
[fUpdater scheduleCheckWithInterval: seconds];
[fDefaults removeObjectForKey: @"WarningDuplicate"];
[fDefaults removeObjectForKey: @"WarningRemainingSpace"];
[fDefaults removeObjectForKey: @"WarningFolderDataSameName"];
[fDefaults removeObjectForKey: @"WarningResetStats"];
[fDefaults removeObjectForKey: @"WarningCreatorBlankAddress"];
[fDefaults removeObjectForKey: @"WarningRemoveBuiltInTracker"];
[fDefaults removeObjectForKey: @"WarningInvalidOpen"];
}
- (void) setQueue: (id) sender