]> Dogcows Code - chaz/thecheat/blob - UpdatePrefs.m
update contact information and project URL
[chaz/thecheat] / UpdatePrefs.m
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12
13 #import "UpdatePrefs.h"
14
15
16 @implementation UpdatePrefs
17
18
19 - (void)awakeFromNib
20 {
21 // set initial states
22 [ibAutoCheckButton setState:[[NSUserDefaults standardUserDefaults] boolForKey:TCUpdateCheckPref]];
23 }
24
25 - (IBAction)ibAutoCheckButton:(id)sender
26 {
27 BOOL pref = [sender state];
28 [[NSUserDefaults standardUserDefaults] setBool:pref forKey:TCUpdateCheckPref];
29 }
30
31 - (IBAction)ibCheckNowButton:(id)sender
32 {
33 ChazCheckForUpdate( TCUpdateCheckURL, YES );
34 }
35
36
37 @end
This page took 0.035106 seconds and 4 git commands to generate.