diff --git a/Sparkle/SUAutomaticUpdateAlert.h b/Sparkle/SUAutomaticUpdateAlert.h index 7ac9b46d..a3f9aa30 100644 --- a/Sparkle/SUAutomaticUpdateAlert.h +++ b/Sparkle/SUAutomaticUpdateAlert.h @@ -13,12 +13,11 @@ @protocol SUAutomaticUpdateAlertDelegate; -typedef enum -{ +typedef NS_ENUM(int, SUAutomaticInstallationChoice) { SUInstallNowChoice, SUInstallLaterChoice, SUDoNotInstallChoice -} SUAutomaticInstallationChoice; +}; @class SUAppcastItem, SUHost; @interface SUAutomaticUpdateAlert : SUWindowController diff --git a/Sparkle/SUStandardVersionComparator.m b/Sparkle/SUStandardVersionComparator.m index bb9eab5a..7bd8599c 100644 --- a/Sparkle/SUStandardVersionComparator.m +++ b/Sparkle/SUStandardVersionComparator.m @@ -24,11 +24,11 @@ return defaultComparator; } -typedef enum { +typedef NS_ENUM(char, SUCharacterType) { kNumberType, kStringType, kSeparatorType, -} SUCharacterType; +}; - (SUCharacterType)typeOfCharacter:(NSString *)character { diff --git a/Sparkle/SUUpdateAlert.h b/Sparkle/SUUpdateAlert.h index d1d07d5e..36b178f6 100644 --- a/Sparkle/SUUpdateAlert.h +++ b/Sparkle/SUUpdateAlert.h @@ -14,13 +14,12 @@ @protocol SUUpdateAlertDelegate; -typedef enum -{ +typedef NS_ENUM(int, SUUpdateAlertChoice) { SUInstallUpdateChoice, SURemindMeLaterChoice, SUSkipThisVersionChoice, SUOpenInfoURLChoice -} SUUpdateAlertChoice; +}; @class WebView, SUAppcastItem, SUHost; @interface SUUpdateAlert : SUWindowController diff --git a/Sparkle/SUUpdatePermissionPrompt.h b/Sparkle/SUUpdatePermissionPrompt.h index cadff1bc..8e116b5d 100644 --- a/Sparkle/SUUpdatePermissionPrompt.h +++ b/Sparkle/SUUpdatePermissionPrompt.h @@ -11,10 +11,10 @@ #import "SUWindowController.h" -typedef enum { +typedef NS_ENUM(int, SUPermissionPromptResult) { SUAutomaticallyCheck, SUDoNotAutomaticallyCheck -} SUPermissionPromptResult; +}; @protocol SUUpdatePermissionPromptDelegate;