From 73324ae2f886ac32fc673c996b00faf0383d93c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Wed, 2 Dec 2015 15:08:51 -0800 Subject: [PATCH] [osx] Commented private headers and implementation files --- include/mbgl/osx/MGLMapView+IBAdditions.h | 37 ++++++++++++++++++- include/mbgl/osx/MGLMapView.h | 9 +++++ platform/darwin/MGLGeometry_Private.h | 8 ++++ platform/darwin/MGLMultiPoint_Private.h | 11 ++++++ platform/osx/src/MGLAccountManager.m | 2 - platform/osx/src/MGLAccountManager_Private.h | 7 +++- platform/osx/src/MGLAttributionButton.h | 4 ++ platform/osx/src/MGLAttributionButton.m | 3 ++ platform/osx/src/MGLCompassCell.h | 2 +- platform/osx/src/MGLCompassCell.m | 3 ++ platform/osx/src/MGLMapView+IBAdditions.m | 4 ++ platform/osx/src/MGLOpenGLLayer.h | 2 + platform/osx/src/NSBundle+MGLAdditions.h | 1 + platform/osx/src/NSProcessInfo+MGLAdditions.h | 2 + 14 files changed, 89 insertions(+), 6 deletions(-) diff --git a/include/mbgl/osx/MGLMapView+IBAdditions.h b/include/mbgl/osx/MGLMapView+IBAdditions.h index 8dacd5ec7..b524328c5 100644 --- a/include/mbgl/osx/MGLMapView+IBAdditions.h +++ b/include/mbgl/osx/MGLMapView+IBAdditions.h @@ -6,19 +6,27 @@ NS_ASSUME_NONNULL_BEGIN @interface MGLMapView (IBAdditions) +#if TARGET_INTERFACE_BUILDER + // Core properties that can be manipulated in the Attributes inspector in // Interface Builder. These redeclarations merely add the IBInspectable keyword. // They appear here to ensure that they appear above the convenience properties; // inspectables declared in MGLMapView.h are always sorted before those in // MGLMapView+IBAdditions.h, due to ASCII sort order. -#if TARGET_INTERFACE_BUILDER // We want this property to look like a URL bar in the Attributes inspector, but // just calling it styleURL would violate Cocoa naming conventions and conflict // with the existing NSURL property. Fortunately, IB strips out the two // underscores for display. + +/** + URL of the style currently displayed in the receiver. + + The URL may be a full HTTP or HTTPS URL, a Mapbox URL indicating the style’s + map ID (`mapbox://styles//