-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathUpdateWindowController.h
49 lines (34 loc) · 1.09 KB
/
UpdateWindowController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// file: UpdateWindowController.m
// project: KnockKnock
// description: window handler for update window/popup (header)
//
// created by Patrick Wardle
// copyright (c) 2017 Objective-See. All rights reserved.
//
@import Cocoa;
@interface UpdateWindowController : NSWindowController <NSWindowDelegate>
{
}
/* PROPERTIES */
//version label/string
@property(weak)IBOutlet NSTextField *infoLabel;
//action button
@property(weak)IBOutlet NSButton *actionButton;
//label string
@property(nonatomic, retain)NSString* infoLabelString;
//first button ('update check')
@property(weak)IBOutlet NSView *firstButton;
//button title
@property(nonatomic, retain)NSString* actionButtonTitle;
//overlay view
@property(weak)IBOutlet NSView *overlayView;
//spinner
@property(weak)IBOutlet NSProgressIndicator *progressIndicator;
/* METHODS */
//save the main label's & button title's text
-(void)configure:(NSString*)label buttonTitle:(NSString*)buttonTitle;
//invoked when user clicks button
// ->trigger action such as opening product website, updating, etc
-(IBAction)buttonHandler:(id)sender;
@end