dadidoe
Computer Pro :)
Hi,
currently I am working on a Splash Screen. It's being displayed but not autoclosed. Instead the Mac OSX "Bottle" Sound comes every 5 seconds.(that's what I set the NSTimer for)The Window is named window2.
Can someone tell me what I have done wrong?
currently I am working on a Splash Screen. It's being displayed but not autoclosed. Instead the Mac OSX "Bottle" Sound comes every 5 seconds.(that's what I set the NSTimer for)The Window is named window2.
Can someone tell me what I have done wrong?
Code:
-(void)awakeFromNib//I must ensure the window closes.
{
NSTimer *timer;
timer = [NSTimer scheduledTimerWithTimeInterval: 5 target: self selector: @selector(tick:) userInfo: nil repeats: YES];//telling the Mac if the alert will repeat and what interval.
}
- (void)tick:(NSTimer *)theTimer
{
[window2 performClose:self];
}