Permalink
Browse files

Fix location service checking

[CLLocationManager locationServicesEnabled] for Mac OS 10.8+
"locationServiceEnabled" was deprecated in Mac OS 10.6
  • Loading branch information...
1 parent 33f0ef9 commit 7338788cb7c91f96f46013448a3c34a3524ab0e6 @c9s c9s committed Jul 11, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/geocommit/provider/corelocation/GGCLDelegate.m
@@ -38,7 +38,10 @@ - (void)start:(NSTimer *)timer {
}
- (BOOL)goodEnough {
- if (![locationManager locationServicesEnabled]) return YES;
+ // "locationServiceEnabled" was deprecated in Mac OS 10.6
+ if (![CLLocationManager locationServicesEnabled]) {
+ return YES;
+ }
if (!dirtied) return NO;
if (didFail) return YES;
if (updateCount >= 2 && timerCount >= 20) return YES;

0 comments on commit 7338788

Please sign in to comment.