This commit is contained in:
joshmoz%gmail.com 2005-06-20 18:33:36 +00:00
Родитель 12c1b15b09
Коммит 0dacaaecf8
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -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;
}