From 6890af9cd95fcecb5329f54b81965a5fc0cffe62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Tue, 1 Dec 2015 17:01:05 -0800 Subject: [PATCH] [osx] Fixed KVO compliance for selectedAnnotation --- platform/osx/sdk/MGLMapView.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/osx/sdk/MGLMapView.mm b/platform/osx/sdk/MGLMapView.mm index 5cee56cd7..350b59e20 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