make Mac OS X update UI work.

This commit is contained in:
joshmoz%gmail.com 2005-06-20 18:33:36 +00:00
parent 12c1b15b09
commit 0dacaaecf8

View File

@ -62,6 +62,11 @@ static const char *sProgramPath;
-(void)awakeFromNib {
[[progressBar window] center];
[progressBar setIndeterminate:NO];
[progressBar setDoubleValue:0.0];
[[NSTimer scheduledTimerWithTimeInterval:TIMER_INTERVAL target:self
selector:@selector(updateProgressUI:)
userInfo:nil repeats:YES] retain];
}
// called when the timer goes off
@ -101,10 +106,6 @@ ShowProgressUI()
return 0;
NSApplicationMain(1, &sProgramPath);
[[NSTimer scheduledTimerWithTimeInterval:TIMER_INTERVAL target:[[[NSApplication sharedApplication] mainWindow] delegate]
selector:@selector(updateProgressUI:)
userInfo:nil repeats:YES] retain];
return 0;
}