Merge pull request #398 from MaddTheSane/nsEnumedEnums

Change enums to NS_ENUMs
This commit is contained in:
Jake Petroules committed 2014-07-26 17:00:00 -04:00
commit e437b720a4
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(NSInteger, 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(NSInteger, SUCharacterType) {
kNumberType,
kStringType,
kSeparatorType,
} SUCharacterType;
};
- (SUCharacterType)typeOfCharacter:(NSString *)character
{
+2 -3
View File
@@ -14,13 +14,12 @@
@protocol SUUpdateAlertDelegate;
typedef enum
{
typedef NS_ENUM(NSInteger, 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(NSInteger, SUPermissionPromptResult) {
SUAutomaticallyCheck,
SUDoNotAutomaticallyCheck
} SUPermissionPromptResult;
};
@protocol SUUpdatePermissionPromptDelegate;