[osx] Fixed KVO compliance for selectedAnnotation
This commit is contained in:
committed by
Minh Nguyễn
parent
9d2e0a19ef
commit
6890af9cd9
@@ -1364,8 +1364,10 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
[self willChangeValueForKey:@"selectedAnnotation"];
|
||||
_selectedAnnotationID = annotationID;
|
||||
_lastSelectedAnnotationID = _selectedAnnotationID;
|
||||
[self didChangeValueForKey:@"selectedAnnotation"];
|
||||
|
||||
if ([annotation respondsToSelector:@selector(title)]
|
||||
&& annotation.title
|
||||
|
||||
Reference in New Issue
Block a user