mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +00:00
Implementing formal protocols for most Sparkle delegates.
This commit is contained in:
1 parent
d34d2853f6
commit
d7dbbe4bb9
18 files changed
+37
-56
No files matched your search
+4
-3
@@ -12,6 +12,7 @@
|
||||
#import "SUWindowController.h"
|
||||
#import "SUVersionDisplayProtocol.h"
|
||||
|
||||
@protocol SUUpdateAlertDelegate;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -25,7 +26,7 @@ typedef enum
|
||||
@interface SUUpdateAlert : SUWindowController {
|
||||
SUAppcastItem *updateItem;
|
||||
SUHost *host;
|
||||
id delegate;
|
||||
id<SUUpdateAlertDelegate> delegate;
|
||||
id<SUVersionDisplay> versionDisplayer;
|
||||
|
||||
IBOutlet WebView *releaseNotesView;
|
||||
@@ -36,9 +37,9 @@ typedef enum
|
||||
NSProgressIndicator *releaseNotesSpinner;
|
||||
BOOL webViewFinishedLoading;
|
||||
}
|
||||
@property (assign) id<SUUpdateAlertDelegate> delegate;
|
||||
|
||||
- (id)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)host;
|
||||
- (void)setDelegate:delegate;
|
||||
|
||||
- (IBAction)installUpdate:sender;
|
||||
- (IBAction)skipThisVersion:sender;
|
||||
@@ -48,7 +49,7 @@ typedef enum
|
||||
|
||||
@end
|
||||
|
||||
@interface NSObject (SUUpdateAlertDelegate)
|
||||
@protocol SUUpdateAlertDelegate <NSObject>
|
||||
- (void)updateAlert:(SUUpdateAlert *)updateAlert finishedWithChoice:(SUUpdateAlertChoice)updateChoice;
|
||||
- (void)updateAlert:(SUUpdateAlert *)updateAlert shouldAllowAutoUpdate: (BOOL*)shouldAllowAutoUpdate;
|
||||
@end
|
||||
|
||||
Reference in new issue
Block a user