mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
When we retrieve the "CFBundleIconFile" key from the Info dictionary, we should rely on SUHost's method of obtaining that value now.
41 lines
1.0 KiB
Objective-C
41 lines
1.0 KiB
Objective-C
//
|
|
// ShowInstallerProgress.m
|
|
// Installer Progress
|
|
//
|
|
// Created by Mayur Pawashe on 4/7/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <AppKit/AppKit.h>
|
|
#import "ShowInstallerProgress.h"
|
|
#import "SUStatusController.h"
|
|
#import "SUHost.h"
|
|
#import "SULocalizations.h"
|
|
|
|
@interface ShowInstallerProgress ()
|
|
|
|
@property (nonatomic) SUStatusController *statusController;
|
|
|
|
@end
|
|
|
|
@implementation ShowInstallerProgress
|
|
|
|
@synthesize statusController = _statusController;
|
|
|
|
- (void)installerProgressShouldDisplayWithHost:(SUHost *)host
|
|
{
|
|
self.statusController = [[SUStatusController alloc] initWithHost:host];
|
|
|
|
[self.statusController setButtonTitle:SULocalizedString(@"Cancel Update", @"") target:nil action:nil isDefault:NO];
|
|
[self.statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"") maxProgressValue:0 statusText:@""];
|
|
[self.statusController showWindow:self];
|
|
}
|
|
|
|
- (void)installerProgressShouldStop
|
|
{
|
|
[self.statusController close];
|
|
self.statusController = nil;
|
|
}
|
|
|
|
@end
|