Files
Sparkle/Sparkle/InstallerProgress/ShowInstallerProgress.m
T
Zorg 2bb5ce4318 Make SUBundleIcon & SUApplicationInfo take SUHost, not NSBundle
When we retrieve the "CFBundleIconFile" key from the Info dictionary, we should rely on SUHost's method of obtaining that value now.
2017-01-07 22:55:13 -05:00

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