RSS

(root)/iphone/tappity : 49 : tappity/source/TappityAppDelegate.m

To get this branch, use:
bzr branch /browse/iphone/tappity

« back to all changes in this revision

Viewing changes to tappity/source/TappityAppDelegate.m

Dömötör Gulyás
2009-10-28 22:34:56
Revision ID: dognotdog@gmail.com-20091028213456-9pjbddhboknsf5w8
tappity now no longer eating some events

Show diffs side-by-side

added added

removed removed

14
14
 
15
15
@implementation TappityAppDelegate
16
16
 
17
 
@synthesize window;
18
 
@synthesize viewController;
 
17
@synthesize window, settingsView, touchSwitch, compassSwitch, locationSwitch, accelerationSwitch, feedbackSwitch;
19
18
 
20
19
 
21
20
- (void)applicationDidFinishLaunching:(UIApplication *)application
35
34
    // services currently found.
36
35
        browser.searchingForServicesString = NSLocalizedString(@"Searching for web services", @"Searching for web services string");
37
36
 
38
 
        // Add the controller's view as a subview of the window
 
37
        [self.window addSubview: settingsView];
 
38
 
 
39
    [window makeKeyAndVisible];
 
40
}
 
41
 
 
42
- (IBAction) letsGo: (id) sender
 
43
{
 
44
        [settingsView removeFromSuperview];
 
45
        
 
46
        [tapClient setEnableAccelerometer: [accelerationSwitch isOn]];
 
47
        [tapClient setEnableCompass: [compassSwitch isOn]];
 
48
        [tapClient setEnableLocation: [locationSwitch isOn]];
 
49
        [tapClient setEnableFeedbackVideoDisplay: [feedbackSwitch isOn]];
 
50
 
39
51
        [self.window addSubview: [browser view]];
40
 
 
41
 
//    [window addSubview:viewController.view];
42
 
    [window makeKeyAndVisible];
43
52
}
44
53
 
45
54
 
46
 
 
47
55
- (NSString *)copyStringFromTXTDict:(NSDictionary *)dict which:(NSString*)which {
48
56
        // Helper for getting information from the TXT data
49
57
        NSData* data = [dict objectForKey:which];
118
126
 
119
127
- (void)dealloc
120
128
{
121
 
    [viewController release];
122
129
        [browser release];
123
130
    [window release];
 
131
    [touchSwitch release];
 
132
    [accelerationSwitch release];
 
133
    [locationSwitch release];
 
134
    [compassSwitch release];
 
135
    [feedbackSwitch release];
 
136
    [settingsView release];
124
137
    [super dealloc];
125
138
}
126
139
 

Loggerhead 1.17 is a web-based interface for Bazaar branches