Fixed a segfault crash that would occur if you stepped at the end of a script
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUUpdatePermissionPrompt.h
1 //
2 // SUUpdatePermissionPrompt.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 1/24/08.
6 // Copyright 2008 Andy Matuschak. All rights reserved.
7 //
8
9 #ifndef SUUPDATEPERMISSIONPROMPT_H
10 #define SUUPDATEPERMISSIONPROMPT_H
11
12 #import "Sparkle.h"
13
14 typedef enum {
15 SUAutomaticallyCheck,
16 SUDoNotAutomaticallyCheck
17 } SUPermissionPromptResult;
18
19 @interface SUUpdatePermissionPrompt : SUWindowController {
20 NSBundle *hostBundle;
21 id delegate;
22 IBOutlet NSTextField *descriptionTextField;
23 IBOutlet NSView *moreInfoView;
24 IBOutlet NSButton *moreInfoButton;
25 BOOL isShowingMoreInfo, shouldSendProfile;
26 }
27 + (void)promptWithHostBundle:(NSBundle *)hb delegate:(id)d;
28 - (IBAction)toggleMoreInfo:(id)sender;
29 - (IBAction)finishPrompt:(id)sender;
30 @end
31
32 @interface NSObject (SUUpdatePermissionPromptDelegateInformalProtocol)
33 - (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result;
34 @end
35
36 #endif