Make Mac OS X updater UI actually show up, and center it. The progress bar doesn't update still, but we're closer.l

This commit is contained in:
joshmoz%gmail.com 2005-06-18 05:40:08 +00:00
Родитель acc702ca90
Коммит 36347e4da9
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -60,6 +60,10 @@ static const char *sProgramPath;
@implementation UpdaterUI
-(void)awakeFromNib {
[[progressBar window] center];
}
// called when the timer goes off
-(void)updateProgressUI:(NSTimer *)aTimer
{
@ -96,7 +100,7 @@ ShowProgressUI()
if (sQuit || sProgressVal > 50.0f)
return 0;
[[NSApplication sharedApplication] run];
NSApplicationMain(1, *sProgramPath);
[[NSTimer scheduledTimerWithTimeInterval:TIMER_INTERVAL target:[[[NSApplication sharedApplication] mainWindow] delegate]
selector:@selector(updateProgressUI:)