RSS

(root)/iphone/common : 57 : MarineCompass/source/MarineCompassAppDelegate.m

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

« back to all changes in this revision

Viewing changes to MarineCompass/source/MarineCompassAppDelegate.m

Dömötör Gulyás
2009-11-17 20:42:17
Revision ID: dognotdog@gmail.com-20091117194217-4m19mdzncyl0r3ob
closes bottom of compass with disk; update for using Tappity

Show diffs side-by-side

added added

removed removed

10
10
#import "EAGLView.h"
11
11
#import "CompassViewController.h"
12
12
#import "ElAnimation.h"
13
 
#import "TappityServer.h"
14
13
 
15
14
#import <UIKit/UIKit.h>
16
15
#import <CoreLocation/CoreLocation.h>
46
45
 
47
46
        [window addSubview: [self view]];
48
47
        
49
 
#if TARGET_IPHONE_SIMULATOR
50
 
        TappityServer* tappityServer = [TappityServer sharedServer];
51
 
        [tappityServer startWithName: @"MarineCompass"];
52
 
        [tappityServer setHeadingDelegate: self];
53
 
#else   
54
48
        lman = [[CLLocationManager alloc] init];
55
49
        
56
50
        [lman setDelegate: self];
57
51
        
58
52
        [lman startUpdatingHeading];
59
 
#endif
60
53
 
61
54
        UIAccelerometer* accm = [UIAccelerometer sharedAccelerometer];
62
55
        [accm setDelegate: self];

Loggerhead 1.17 is a web-based interface for Bazaar branches