mirror of
https://github.com/objective-see/KnockKnock.git
synced 2026-03-22 06:52:25 +00:00
be45161024
-try/catch around JSON output -switched to 'UUIDString' for <10.10 compatibility -update check!
50 lines
1.1 KiB
Objective-C
50 lines
1.1 KiB
Objective-C
//
|
|
// 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
|