]> Dogcows Code - chaz/thecheat/blob - UpdatePrefs.m
The Cheat 1.2
[chaz/thecheat] / UpdatePrefs.m
1 //
2 // UpdatePrefs.m
3 // The Cheat
4 //
5 // Created by Chaz McGarvey on 2/21/05.
6 // Copyright 2005 Chaz McGarvey. All rights reserved.
7 //
8
9 #import "UpdatePrefs.h"
10
11
12 @implementation UpdatePrefs
13
14
15 - (void)awakeFromNib
16 {
17 // set initial states
18 [ibAutoCheckButton setState:[[NSUserDefaults standardUserDefaults] boolForKey:TCUpdateCheckPref]];
19 }
20
21 - (IBAction)ibAutoCheckButton:(id)sender
22 {
23 BOOL pref = [sender state];
24 [[NSUserDefaults standardUserDefaults] setBool:pref forKey:TCUpdateCheckPref];
25 }
26
27 - (IBAction)ibCheckNowButton:(id)sender
28 {
29 ChazCheckForUpdate( TCUpdateCheckURL, YES );
30 }
31
32
33 @end
This page took 0.041588 seconds and 5 git commands to generate.