Changeset 676
- Timestamp:
- 01/20/10 12:56:11 (3 years ago)
- Files:
-
- 1 modified
-
apps/iphone/my.tel/trunk/Classes/MyCLController.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/my.tel/trunk/Classes/MyCLController.m
r626 r676 25 25 self.locationManager.delegate = self; // Tells the location manager to send updates to this object 26 26 self.myCurrentLoc = [[CLLocation alloc] initWithLatitude:0 longitude:0]; 27 [self.locationManager startUpdatingLocation]; 27 28 } 28 29 return self; … … 47 48 // } 48 49 50 // Check the timestamp, see if it's an hour old or more. If so, don't send an update 51 if (ABS([newLocation.timestamp timeIntervalSinceNow]) > 3600) { 52 [self.delegate gpsUpdate:nil]; 53 return; 54 } 55 49 56 [myCurrentLoc release]; 50 57 myCurrentLoc = [newLocation copy]; // TODO: Why does this increment the retain count? We should be manually retaining 51 58 52 // send the timestamp59 // Looks like the loc is good 53 60 [self.delegate gpsUpdate:myCurrentLoc]; 54 61 return;








