summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-12-01 17:01:05 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-12-13 17:26:53 -0800
commit6890af9cd95fcecb5329f54b81965a5fc0cffe62 (patch)
tree692eaf343b26c84b4e21a17c5d93a2c4c7b10a4d
parent9d2e0a19efa05ed34d2648d59b1c4a94e48506f1 (diff)
downloadqtlocation-mapboxgl-6890af9cd95fcecb5329f54b81965a5fc0cffe62.tar.gz
[osx] Fixed KVO compliance for selectedAnnotation
-rw-r--r--platform/osx/sdk/MGLMapView.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/osx/sdk/MGLMapView.mm b/platform/osx/sdk/MGLMapView.mm
index 5cee56cd7d..350b59e208 100644
--- a/platform/osx/sdk/MGLMapView.mm
+++ b/platform/osx/sdk/MGLMapView.mm
@@ -1364,8 +1364,10 @@ public:
return;
}
+ [self willChangeValueForKey:@"selectedAnnotation"];
_selectedAnnotationID = annotationID;
_lastSelectedAnnotationID = _selectedAnnotationID;
+ [self didChangeValueForKey:@"selectedAnnotation"];
if ([annotation respondsToSelector:@selector(title)]
&& annotation.title