mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Merge pull request #398 from MaddTheSane/nsEnumedEnums
Change enums to NS_ENUMs
This commit is contained in:
commit
e437b720a4
4 files changed
+8
-10
No files matched your search
Vendored
+2
-3
@@ -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
@@ -24,11 +24,11 @@
|
||||
return defaultComparator;
|
||||
}
|
||||
|
||||
typedef enum {
|
||||
typedef NS_ENUM(NSInteger, SUCharacterType) {
|
||||
kNumberType,
|
||||
kStringType,
|
||||
kSeparatorType,
|
||||
} SUCharacterType;
|
||||
};
|
||||
|
||||
- (SUCharacterType)typeOfCharacter:(NSString *)character
|
||||
{
|
||||
|
||||
Vendored
+2
-3
@@ -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
|
||||
|
||||
Vendored
+2
-2
@@ -11,10 +11,10 @@
|
||||
|
||||
#import "SUWindowController.h"
|
||||
|
||||
typedef enum {
|
||||
typedef NS_ENUM(NSInteger, SUPermissionPromptResult) {
|
||||
SUAutomaticallyCheck,
|
||||
SUDoNotAutomaticallyCheck
|
||||
} SUPermissionPromptResult;
|
||||
};
|
||||
|
||||
@protocol SUUpdatePermissionPromptDelegate;
|
||||
|
||||
|
||||
Reference in new issue
Block a user