fixed #1 problem with nap time

This commit is contained in:
Jeena 2014-05-11 19:42:57 +02:00
parent 73b1ae5e83
commit 2403c80c3f
3 changed files with 8 additions and 5 deletions

View file

@ -176,11 +176,15 @@
target:self selector:@selector(tick:)
userInfo:nil repeats:YES];
self.repeatingTimer = timer;
action = [[NSProcessInfo processInfo] beginActivityWithOptions:NSActivityUserInitiated reason:@"Timr needs to run every second"];
[action retain];
}
- (void)stopRepeatingTimer:(id)sender {
[repeatingTimer invalidate];
self.repeatingTimer = nil;
[[NSProcessInfo processInfo] endActivity:action];
[action release];
}
- (IBAction)changeDigit:(NSButton *)sender {