From 042d720a0e4cdd95b3bb6f820eb68f0d46405806 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Thu, 5 May 2016 19:17:38 -0400 Subject: Make callout properties iPhone-specific, fix OS X build again So ugly! --- platform/darwin/src/MGLPointAnnotation.m | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/platform/darwin/src/MGLPointAnnotation.m b/platform/darwin/src/MGLPointAnnotation.m index f23382049a..0daf62e86d 100644 --- a/platform/darwin/src/MGLPointAnnotation.m +++ b/platform/darwin/src/MGLPointAnnotation.m @@ -3,8 +3,11 @@ @implementation MGLPointAnnotation @synthesize coordinate; + +#if TARGET_OS_IPHONE @synthesize canShowCallout; @synthesize calloutView; +#endif - (NSString *)description { @@ -12,8 +15,11 @@ NSStringFromClass([self class]), (void *)self, self.title ? [NSString stringWithFormat:@"\"%@\"", self.title] : self.title, self.subtitle ? [NSString stringWithFormat:@"\"%@\"", self.subtitle] : self.subtitle, - coordinate.latitude, coordinate.longitude, - canShowCallout ? @"yes" : @"no", calloutView]; + coordinate.latitude, coordinate.longitude +#if TARGET_OS_IPHONE + , canShowCallout ? @"yes" : @"no", calloutView +#endif + ]; } @end -- cgit v1.2.1