mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
- changed some #include to #import - fixed some NULL -> nil Cocoa coding conventions - added new compiler warnings and fixed some warnings they generated - check for nil from NSTemporaryDirectory - added missing files to unit test and test app targets - added xcconfig files for unit test target - added @private to some ivars - changes some variables from signed to unsigned as appropriate - changed from base 2 to base 10 measurements of file size, consistent with both the actual meaning of metric prefixes and Apple's new policy as of 10.6 - reduced some unneeded copy-paste of code - fixed failure to check for null from malloc and unneeded check against null before calling free - OSErr was incorrectly used instead of OSStatus - added some consts & statics to global strings - fixed some issues discovered by static analysis - fixed some 64bit issues, mostly related to casting and the use of slightly incorrect types/sizes - some dealloc methods were using accessors, changed to access ivars directly, as per Apple guidelines - removed old NS_DURING, NS_HANDLER, NS_ENDHANDLER macros - fixed a bug where immutable data was being mutated - removed all instance of "== YES" as they are dangerous - removed some redundant nil checks - fixed some leaks - conditionally replaced deprecated method usage - cleanup CF/NSMakeCollectable usage - fixed bug in GC where memory could be collected too early due to lack of strong references when using UTF8String - prevent passing null to CFRelease
50 lines
1.9 KiB
Objective-C
50 lines
1.9 KiB
Objective-C
//
|
|
// SUConstants.m
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 3/16/06.
|
|
// Copyright 2006 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#import "Sparkle.h"
|
|
#import "SUConstants.h"
|
|
|
|
NSString *const SUUpdaterWillRestartNotification = @"SUUpdaterWillRestartNotificationName";
|
|
NSString *const SUTechnicalErrorInformationKey = @"SUTechnicalErrorInformation";
|
|
|
|
NSString *const SUHasLaunchedBeforeKey = @"SUHasLaunchedBefore";
|
|
NSString *const SUFeedURLKey = @"SUFeedURL";
|
|
NSString *const SUShowReleaseNotesKey = @"SUShowReleaseNotes";
|
|
NSString *const SUSkippedVersionKey = @"SUSkippedVersion";
|
|
NSString *const SUScheduledCheckIntervalKey = @"SUScheduledCheckInterval";
|
|
NSString *const SULastCheckTimeKey = @"SULastCheckTime";
|
|
NSString *const SUExpectsDSASignatureKey = @"SUExpectsDSASignature";
|
|
NSString *const SUPublicDSAKeyKey = @"SUPublicDSAKey";
|
|
NSString *const SUPublicDSAKeyFileKey = @"SUPublicDSAKeyFile";
|
|
NSString *const SUAutomaticallyUpdateKey = @"SUAutomaticallyUpdate";
|
|
NSString *const SUAllowsAutomaticUpdatesKey = @"SUAllowsAutomaticUpdates";
|
|
NSString *const SUEnableSystemProfilingKey = @"SUEnableSystemProfiling";
|
|
NSString *const SUEnableAutomaticChecksKey = @"SUEnableAutomaticChecks";
|
|
NSString *const SUEnableAutomaticChecksKeyOld = @"SUCheckAtStartup";
|
|
NSString *const SUSendProfileInfoKey = @"SUSendProfileInfo";
|
|
NSString *const SULastProfileSubmitDateKey = @"SULastProfileSubmissionDate";
|
|
|
|
NSString *const SUSparkleErrorDomain = @"SUSparkleErrorDomain";
|
|
OSStatus SUAppcastParseError = 1000;
|
|
OSStatus SUNoUpdateError = 1001;
|
|
OSStatus SUAppcastError = 1002;
|
|
OSStatus SURunningFromDiskImageError = 1003;
|
|
|
|
OSStatus SUTemporaryDirectoryError = 2000;
|
|
|
|
OSStatus SUUnarchivingError = 3000;
|
|
OSStatus SUSignatureError = 3001;
|
|
|
|
OSStatus SUFileCopyFailure = 4000;
|
|
OSStatus SUAuthenticationFailure = 4001;
|
|
OSStatus SUMissingUpdateError = 4002;
|
|
OSStatus SUMissingInstallerToolError = 4003;
|
|
OSStatus SURelaunchError = 4004;
|
|
OSStatus SUInstallationError = 4005;
|
|
OSStatus SUDowngradeError = 4006;
|