[osx] Fixed KVO compliance for selectedAnnotation

This commit is contained in:
Minh Nguyễn
2015-12-01 17:01:05 -08:00
committed by Minh Nguyễn
parent 9d2e0a19ef
commit 6890af9cd9

View File

@@ -1364,8 +1364,10 @@ public:
return;
}
[self willChangeValueForKey:@"selectedAnnotation"];
_selectedAnnotationID = annotationID;
_lastSelectedAnnotationID = _selectedAnnotationID;
[self didChangeValueForKey:@"selectedAnnotation"];
if ([annotation respondsToSelector:@selector(title)]
&& annotation.title