mamburu: Whether to show remaining time or elapsed time now survives restarts

CQTexperiment
Chris Moeller 2013-10-11 05:53:37 -07:00
parent 74db595a2d
commit 053b09ba1b
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,11 @@
@implementation TimeField
- (void)awakeFromNib
{
showTimeRemaining = [[NSUserDefaults standardUserDefaults] boolForKey:@"timerShowTimeRemaining"];
}
- (void)update
{
NSString *text;
@ -32,6 +37,7 @@
- (void)mouseDown:(NSEvent *)theEvent
{
showTimeRemaining = !showTimeRemaining;
[[NSUserDefaults standardUserDefaults] setBool:showTimeRemaining forKey:@"timerShowTimeRemaining"];
[self update];
}