Replace typedef enums with typedef NS_ENUM.

For one thing, it make Swift happier. Also, we don’t have to worry about what size/type the value is.
This commit is contained in:
C.W. Betts committed 2014-07-26 11:03:18 -06:00
1 parent 0b186dc939
commit b7eb5403ff
4 files changed
+8 -10

No files matched your search

+2 -3
View File
@@ -13,12 +13,11 @@
@protocol SUAutomaticUpdateAlertDelegate;
typedef enum
{
typedef NS_ENUM(int, SUAutomaticInstallationChoice) {
SUInstallNowChoice,
SUInstallLaterChoice,
SUDoNotInstallChoice
} SUAutomaticInstallationChoice;
};
@class SUAppcastItem, SUHost;
@interface SUAutomaticUpdateAlert : SUWindowController
+2 -2
View File
@@ -24,11 +24,11 @@
return defaultComparator;
}
typedef enum {
typedef NS_ENUM(char, SUCharacterType) {
kNumberType,
kStringType,
kSeparatorType,
} SUCharacterType;
};
- (SUCharacterType)typeOfCharacter:(NSString *)character
{
+2 -3
View File
@@ -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
+2 -2
View File
@@ -11,10 +11,10 @@
#import "SUWindowController.h"
typedef enum {
typedef NS_ENUM(int, SUPermissionPromptResult) {
SUAutomaticallyCheck,
SUDoNotAutomaticallyCheck
} SUPermissionPromptResult;
};
@protocol SUUpdatePermissionPromptDelegate;