Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix location service checking #10

Merged
merged 1 commit into from

2 participants

@c9s

[CLLocationManager locationServicesEnabled] for Mac OS 10.8+
"locationServiceEnabled" was deprecated in Mac OS 10.6

@c9s c9s Fix location service checking
[CLLocationManager locationServicesEnabled] for Mac OS 10.8+
"locationServiceEnabled" was deprecated in Mac OS 10.6
7338788
@naderman naderman merged commit 234e387 into peritus:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 11, 2012
  1. @c9s

    Fix location service checking

    c9s authored
    [CLLocationManager locationServicesEnabled] for Mac OS 10.8+
    "locationServiceEnabled" was deprecated in Mac OS 10.6
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/geocommit/provider/corelocation/GGCLDelegate.m
View
5 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;
Something went wrong with that request. Please try again.