fixed #1 problem with nap time
This commit is contained in:
parent
73b1ae5e83
commit
2403c80c3f
3 changed files with 8 additions and 5 deletions
4
Timer.m
4
Timer.m
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue