Documentation Archive Developer
Search

MapKit Changes for Objective-C

MapKit

MKAnnotation.h

Declaration
From
@property(nonatomic, readonly, copy) NSString *subtitle
To
@property(nonatomic, readonly, copy, nullable) NSString *subtitle

Declaration
From
@property(nonatomic, readonly, copy) NSString *title
To
@property(nonatomic, readonly, copy, nullable) NSString *title

MKAnnotationView.h

Declaration
From
@property(nonatomic, strong) id<MKAnnotation> annotation
To
@property(nonatomic, strong, nullable) id<MKAnnotation> annotation

Declaration
From
@property(nonatomic, strong) NSImage *image
To
@property(nonatomic, strong, nullable) NSImage *image

Declaration
From
- (instancetype)initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier
To
- (instancetype _Nonnull)initWithAnnotation:(id<MKAnnotation> _Nullable)annotation reuseIdentifier:(NSString * _Nullable)reuseIdentifier

Declaration
From
@property(strong, nonatomic) NSView *leftCalloutAccessoryView
To
@property(strong, nonatomic, nullable) NSView *leftCalloutAccessoryView

Declaration
From
@property(nonatomic, readonly) NSString *reuseIdentifier
To
@property(nonatomic, readonly, nullable) NSString *reuseIdentifier

Declaration
From
@property(strong, nonatomic) NSView *rightCalloutAccessoryView
To
@property(strong, nonatomic, nullable) NSView *rightCalloutAccessoryView

MKCircle.h

Declaration
From
+ (instancetype)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord radius:(CLLocationDistance)radius
To
+ (instancetype _Nonnull)circleWithCenterCoordinate:(CLLocationCoordinate2D)coord radius:(CLLocationDistance)radius

Declaration
From
+ (instancetype)circleWithMapRect:(MKMapRect)mapRect
To
+ (instancetype _Nonnull)circleWithMapRect:(MKMapRect)mapRect

MKCircleRenderer.h

Declaration
From
@property(nonatomic, readonly) MKCircle *circle
To
@property(nonatomic, readonly, nonnull) MKCircle *circle

Declaration
From
- (instancetype)initWithCircle:(MKCircle *)circle
To
- (instancetype _Nonnull)initWithCircle:(MKCircle * _Nonnull)circle

MKDirections.h

Declaration
From
- (void)calculateDirectionsWithCompletionHandler:(MKDirectionsHandler)completionHandler
To
- (void)calculateDirectionsWithCompletionHandler:(MKDirectionsHandler _Nonnull)completionHandler

Declaration
From
- (void)calculateETAWithCompletionHandler:(MKETAHandler)completionHandler
To
- (void)calculateETAWithCompletionHandler:(MKETAHandler _Nonnull)completionHandler

Declaration
From
- (instancetype)initWithRequest:(MKDirectionsRequest *)request
To
- (instancetype _Nonnull)initWithRequest:(MKDirectionsRequest * _Nonnull)request

MKDirectionsRequest.h

Declaration
From
@property(nonatomic, copy) NSDate *arrivalDate
To
@property(nonatomic, copy, nullable) NSDate *arrivalDate

Declaration
From
@property(nonatomic, copy) NSDate *departureDate
To
@property(nonatomic, copy, nullable) NSDate *departureDate

Declaration
From
- (MKMapItem *)destination
To
@property(nonatomic, strong, nullable) MKMapItem *destination

Declaration
From
- (instancetype)initWithContentsOfURL:(NSURL *)url
To
- (instancetype _Nonnull)initWithContentsOfURL:(NSURL * _Nonnull)url

Declaration
From
+ (BOOL)isDirectionsRequestURL:(NSURL *)url
To
+ (BOOL)isDirectionsRequestURL:(NSURL * _Nonnull)url

Declaration
From
- (void)setDestination:(MKMapItem *)destination
To
- (void)setDestination:(MKMapItem * _Nullable)destination

Declaration
From
- (void)setSource:(MKMapItem *)source
To
- (void)setSource:(MKMapItem * _Nullable)source

Declaration
From
- (MKMapItem *)source
To
@property(nonatomic, strong, nullable) MKMapItem *source

MKDirectionsResponse.h

Declaration
From
@property(nonatomic, readonly) MKMapItem *destination
To
@property(nonatomic, readonly, nonnull) MKMapItem *destination

Declaration
From
@property(nonatomic, readonly) NSArray *routes
To
@property(nonatomic, readonly, nonnull) NSArray<MKRoute *> *routes

Declaration
From
@property(nonatomic, readonly) MKMapItem *source
To
@property(nonatomic, readonly, nonnull) MKMapItem *source

Declaration
From
@property(nonatomic, readonly) MKMapItem *destination
To
@property(nonatomic, readonly, nonnull) MKMapItem *destination

Declaration
From
@property(nonatomic, readonly) MKMapItem *source
To
@property(nonatomic, readonly, nonnull) MKMapItem *source

Declaration
From
@property(nonatomic, readonly) NSArray *advisoryNotices
To
@property(nonatomic, readonly, nonnull) NSArray<NSString *> *advisoryNotices

Modified MKRoute.name
Declaration
From
@property(nonatomic, readonly) NSString *name
To
@property(nonatomic, readonly, nonnull) NSString *name

Declaration
From
@property(nonatomic, readonly) MKPolyline *polyline
To
@property(nonatomic, readonly, nonnull) MKPolyline *polyline

Modified MKRoute.steps
Declaration
From
@property(nonatomic, readonly) NSArray *steps
To
@property(nonatomic, readonly, nonnull) NSArray<MKRouteStep *> *steps

Declaration
From
@property(nonatomic, readonly) NSString *instructions
To
@property(nonatomic, readonly, nonnull) NSString *instructions

Declaration
From
@property(nonatomic, readonly) NSString *notice
To
@property(nonatomic, readonly, nullable) NSString *notice

Declaration
From
@property(nonatomic, readonly) MKPolyline *polyline
To
@property(nonatomic, readonly, nonnull) MKPolyline *polyline

MKDirectionsTypes.h

MKDistanceFormatter.h

Declaration
From
- (CLLocationDistance)distanceFromString:(NSString *)distance
To
- (CLLocationDistance)distanceFromString:(NSString * _Nonnull)distance

Declaration
From
@property(copy, atomic) NSLocale *locale
To
@property(copy, atomic) NSLocale * _Null_unspecified locale

Declaration
From
- (NSString *)stringFromDistance:(CLLocationDistance)distance
To
- (NSString * _Nonnull)stringFromDistance:(CLLocationDistance)distance

MKGeodesicPolyline.h

Declaration
From
+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count
To
+ (instancetype _Nonnull)polylineWithCoordinates:(CLLocationCoordinate2D * _Nonnull)coords count:(NSUInteger)count

Declaration
From
+ (instancetype)polylineWithPoints:(MKMapPoint *)points count:(NSUInteger)count
To
+ (instancetype _Nonnull)polylineWithPoints:(MKMapPoint * _Nonnull)points count:(NSUInteger)count

MKGeometry.h

Declaration
From
+ (NSValue *)valueWithMKCoordinate:(CLLocationCoordinate2D)coordinate
To
+ (NSValue * _Nonnull)valueWithMKCoordinate:(CLLocationCoordinate2D)coordinate

Declaration
From
+ (NSValue *)valueWithMKCoordinateSpan:(MKCoordinateSpan)span
To
+ (NSValue * _Nonnull)valueWithMKCoordinateSpan:(MKCoordinateSpan)span

Declaration
From
void MKMapRectDivide (
    MKMapRect rect,
    MKMapRect *slice,
    MKMapRect *remainder,
    double amount,
    CGRectEdge edge
);
To
void MKMapRectDivide (
    MKMapRect rect,
    MKMapRect * _Nonnull slice,
    MKMapRect * _Nonnull remainder,
    double amount,
    CGRectEdge edge
);

Declaration
From
NSString * MKStringFromMapPoint (
    MKMapPoint point
);
To
NSString * _Nonnull MKStringFromMapPoint (
    MKMapPoint point
);

Declaration
From
NSString * MKStringFromMapRect (
    MKMapRect rect
);
To
NSString * _Nonnull MKStringFromMapRect (
    MKMapRect rect
);

Declaration
From
NSString * MKStringFromMapSize (
    MKMapSize size
);
To
NSString * _Nonnull MKStringFromMapSize (
    MKMapSize size
);

MKLocalSearch.h

Declaration
From
- (instancetype)initWithRequest:(MKLocalSearchRequest *)request
To
- (instancetype _Nonnull)initWithRequest:(MKLocalSearchRequest * _Nonnull)request

Declaration
From
- (void)startWithCompletionHandler:(MKLocalSearchCompletionHandler)completionHandler
To
- (void)startWithCompletionHandler:(MKLocalSearchCompletionHandler _Nonnull)completionHandler

MKLocalSearchRequest.h

Declaration
From
@property(nonatomic, copy) NSString *naturalLanguageQuery
To
@property(nonatomic, copy, nullable) NSString *naturalLanguageQuery

MKLocalSearchResponse.h

Declaration
From
@property(nonatomic, readonly) NSArray *mapItems
To
@property(nonatomic, readonly, nonnull) NSArray<MKMapItem *> *mapItems

MKMapCamera.h

Declaration
From
+ (instancetype)camera
To
+ (instancetype _Nonnull)camera

Declaration
From
+ (instancetype)cameraLookingAtCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate fromEyeCoordinate:(CLLocationCoordinate2D)eyeCoordinate eyeAltitude:(CLLocationDistance)eyeAltitude
To
+ (instancetype _Nonnull)cameraLookingAtCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate fromEyeCoordinate:(CLLocationCoordinate2D)eyeCoordinate eyeAltitude:(CLLocationDistance)eyeAltitude

MKMapItem.h

Declaration
From
- (instancetype)initWithPlacemark:(MKPlacemark *)placemark
To
- (instancetype _Nonnull)initWithPlacemark:(MKPlacemark * _Nonnull)placemark

Declaration
From
+ (MKMapItem *)mapItemForCurrentLocation
To
+ (MKMapItem * _Nonnull)mapItemForCurrentLocation

Declaration
From
@property(nonatomic, copy) NSString *name
To
@property(nonatomic, copy, nullable) NSString *name

Declaration
From
- (BOOL)openInMapsWithLaunchOptions:(NSDictionary *)launchOptions
To
- (BOOL)openInMapsWithLaunchOptions:(NSDictionary<NSString *,id> * _Nullable)launchOptions

Declaration
From
+ (BOOL)openMapsWithItems:(NSArray *)mapItems launchOptions:(NSDictionary *)launchOptions
To
+ (BOOL)openMapsWithItems:(NSArray<MKMapItem *> * _Nonnull)mapItems launchOptions:(NSDictionary<NSString *,id> * _Nullable)launchOptions

Declaration
From
@property(nonatomic, copy) NSString *phoneNumber
To
@property(nonatomic, copy, nullable) NSString *phoneNumber

Declaration
From
@property(nonatomic, readonly) MKPlacemark *placemark
To
@property(nonatomic, readonly, nonnull) MKPlacemark *placemark

Modified MKMapItem.url
Declaration
From
@property(nonatomic, strong) NSURL *url
To
@property(nonatomic, strong, nullable) NSURL *url

MKMapSnapshot.h

Declaration
From
@property(nonatomic, readonly) NSImage *image
To
@property(nonatomic, readonly, nonnull) NSImage *image

MKMapSnapshotOptions.h

Declaration
From
@property(nonatomic, copy) MKMapCamera *camera
To
@property(nonatomic, copy, nonnull) MKMapCamera *camera

MKMapSnapshotter.h

Declaration
From
- (instancetype)initWithOptions:(MKMapSnapshotOptions *)options
To
- (instancetype _Nonnull)initWithOptions:(MKMapSnapshotOptions * _Nonnull)options

Declaration
From
- (void)startWithCompletionHandler:(MKMapSnapshotCompletionHandler)completionHandler
To
- (void)startWithCompletionHandler:(MKMapSnapshotCompletionHandler _Nonnull)completionHandler

Declaration
From
- (void)startWithQueue:(dispatch_queue_t)queue completionHandler:(MKMapSnapshotCompletionHandler)completionHandler
To
- (void)startWithQueue:(dispatch_queue_t _Nonnull)queue completionHandler:(MKMapSnapshotCompletionHandler _Nonnull)completionHandler

MKMapView.h

Declaration
From
- (void)addAnnotation:(id<MKAnnotation>)annotation
To
- (void)addAnnotation:(id<MKAnnotation> _Nonnull)annotation

Declaration
From
- (void)addAnnotations:(NSArray *)annotations
To
- (void)addAnnotations:(NSArray<id<MKAnnotation>> * _Nonnull)annotations

Declaration
From
- (void)addOverlay:(id<MKOverlay>)overlay
To
- (void)addOverlay:(id<MKOverlay> _Nonnull)overlay

Declaration
From
- (void)addOverlay:(id<MKOverlay>)overlay level:(MKOverlayLevel)level
To
- (void)addOverlay:(id<MKOverlay> _Nonnull)overlay level:(MKOverlayLevel)level

Declaration
From
- (void)addOverlays:(NSArray *)overlays
To
- (void)addOverlays:(NSArray<id<MKOverlay>> * _Nonnull)overlays

Declaration
From
- (void)addOverlays:(NSArray *)overlays level:(MKOverlayLevel)level
To
- (void)addOverlays:(NSArray<id<MKOverlay>> * _Nonnull)overlays level:(MKOverlayLevel)level

Declaration
From
@property(nonatomic, readonly) NSArray *annotations
To
@property(nonatomic, readonly, nonnull) NSArray<id<MKAnnotation>> *annotations

Declaration
From
- (NSSet *)annotationsInMapRect:(MKMapRect)mapRect
To
- (NSSet<id<MKAnnotation>> * _Nonnull)annotationsInMapRect:(MKMapRect)mapRect

Declaration
From
@property(nonatomic, copy) MKMapCamera *camera
To
@property(nonatomic, copy, nonnull) MKMapCamera *camera

Declaration
From
- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(NSView *)view
To
- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(NSView * _Nullable)view

Declaration
From
- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(NSView *)view
To
- (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(NSView * _Nullable)view

Declaration
From
- (MKCoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(NSView *)view
To
- (MKCoordinateRegion)convertRect:(CGRect)rect toRegionFromView:(NSView * _Nullable)view

Declaration
From
- (CGRect)convertRegion:(MKCoordinateRegion)region toRectToView:(NSView *)view
To
- (CGRect)convertRegion:(MKCoordinateRegion)region toRectToView:(NSView * _Nullable)view

Declaration
From
@property(nonatomic, weak) id<MKMapViewDelegate> delegate
To
@property(nonatomic, weak, nullable) id<MKMapViewDelegate> delegate

Declaration
From
- (MKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier
To
- (MKAnnotationView * _Nullable)dequeueReusableAnnotationViewWithIdentifier:(NSString * _Nonnull)identifier

Declaration
From
- (void)deselectAnnotation:(id<MKAnnotation>)annotation animated:(BOOL)animated
To
- (void)deselectAnnotation:(id<MKAnnotation> _Nullable)annotation animated:(BOOL)animated

Declaration
From
- (void)exchangeOverlay:(id<MKOverlay>)overlay1 withOverlay:(id<MKOverlay>)overlay2
To
- (void)exchangeOverlay:(id<MKOverlay> _Nonnull)overlay1 withOverlay:(id<MKOverlay> _Nonnull)overlay2

Declaration
From
- (void)insertOverlay:(id<MKOverlay>)overlay aboveOverlay:(id<MKOverlay>)sibling
To
- (void)insertOverlay:(id<MKOverlay> _Nonnull)overlay aboveOverlay:(id<MKOverlay> _Nonnull)sibling

Declaration
From
- (void)insertOverlay:(id<MKOverlay>)overlay atIndex:(NSUInteger)index
To
- (void)insertOverlay:(id<MKOverlay> _Nonnull)overlay atIndex:(NSUInteger)index

Declaration
From
- (void)insertOverlay:(id<MKOverlay>)overlay atIndex:(NSUInteger)index level:(MKOverlayLevel)level
To
- (void)insertOverlay:(id<MKOverlay> _Nonnull)overlay atIndex:(NSUInteger)index level:(MKOverlayLevel)level

Declaration
From
- (void)insertOverlay:(id<MKOverlay>)overlay belowOverlay:(id<MKOverlay>)sibling
To
- (void)insertOverlay:(id<MKOverlay> _Nonnull)overlay belowOverlay:(id<MKOverlay> _Nonnull)sibling

Declaration
From
@property(nonatomic, readonly) NSArray *overlays
To
@property(nonatomic, readonly, nonnull) NSArray<id<MKOverlay>> *overlays

Declaration
From
- (NSArray *)overlaysInLevel:(MKOverlayLevel)level
To
- (NSArray<id<MKOverlay>> * _Nonnull)overlaysInLevel:(MKOverlayLevel)level

Declaration
From
- (void)removeAnnotation:(id<MKAnnotation>)annotation
To
- (void)removeAnnotation:(id<MKAnnotation> _Nonnull)annotation

Declaration
From
- (void)removeAnnotations:(NSArray *)annotations
To
- (void)removeAnnotations:(NSArray<id<MKAnnotation>> * _Nonnull)annotations

Declaration
From
- (void)removeOverlay:(id<MKOverlay>)overlay
To
- (void)removeOverlay:(id<MKOverlay> _Nonnull)overlay

Declaration
From
- (void)removeOverlays:(NSArray *)overlays
To
- (void)removeOverlays:(NSArray<id<MKOverlay>> * _Nonnull)overlays

Declaration
From
- (MKOverlayRenderer *)rendererForOverlay:(id<MKOverlay>)overlay
To
- (MKOverlayRenderer * _Nullable)rendererForOverlay:(id<MKOverlay> _Nonnull)overlay

Declaration
From
- (void)selectAnnotation:(id<MKAnnotation>)annotation animated:(BOOL)animated
To
- (void)selectAnnotation:(id<MKAnnotation> _Nonnull)annotation animated:(BOOL)animated

Declaration
From
@property(nonatomic, copy) NSArray *selectedAnnotations
To
@property(nonatomic, copy, nonnull) NSArray<id<MKAnnotation>> *selectedAnnotations

Declaration
From
- (void)setCamera:(MKMapCamera *)camera animated:(BOOL)animated
To
- (void)setCamera:(MKMapCamera * _Nonnull)camera animated:(BOOL)animated

Declaration
From
- (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated
To
- (void)showAnnotations:(NSArray<id<MKAnnotation>> * _Nonnull)annotations animated:(BOOL)animated

Declaration
From
@property(nonatomic, readonly) MKUserLocation *userLocation
To
@property(nonatomic, readonly, nonnull) MKUserLocation *userLocation

Declaration
From
- (MKAnnotationView *)viewForAnnotation:(id<MKAnnotation>)annotation
To
- (MKAnnotationView * _Nullable)viewForAnnotation:(id<MKAnnotation> _Nonnull)annotation

Declaration
From
- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view didChangeDragState:(MKAnnotationViewDragState)newState fromOldState:(MKAnnotationViewDragState)oldState
To
- (void)mapView:(MKMapView * _Nonnull)mapView annotationView:(MKAnnotationView * _Nonnull)view didChangeDragState:(MKAnnotationViewDragState)newState fromOldState:(MKAnnotationViewDragState)oldState

Declaration
From
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views
To
- (void)mapView:(MKMapView * _Nonnull)mapView didAddAnnotationViews:(NSArray<MKAnnotationView *> * _Nonnull)views

Declaration
From
- (void)mapView:(MKMapView *)mapView didAddOverlayRenderers:(NSArray *)renderers
To
- (void)mapView:(MKMapView * _Nonnull)mapView didAddOverlayRenderers:(NSArray<MKOverlayRenderer *> * _Nonnull)renderers

Declaration
From
- (void)mapView:(MKMapView *)mapView didDeselectAnnotationView:(MKAnnotationView *)view
To
- (void)mapView:(MKMapView * _Nonnull)mapView didDeselectAnnotationView:(MKAnnotationView * _Nonnull)view

Declaration
From
- (void)mapView:(MKMapView *)mapView didFailToLocateUserWithError:(NSError *)error
To
- (void)mapView:(MKMapView * _Nonnull)mapView didFailToLocateUserWithError:(NSError * _Nonnull)error

Declaration
From
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view
To
- (void)mapView:(MKMapView * _Nonnull)mapView didSelectAnnotationView:(MKAnnotationView * _Nonnull)view

Declaration
From
- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
To
- (void)mapView:(MKMapView * _Nonnull)mapView didUpdateUserLocation:(MKUserLocation * _Nonnull)userLocation

Declaration
From
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
To
- (void)mapView:(MKMapView * _Nonnull)mapView regionDidChangeAnimated:(BOOL)animated

Declaration
From
- (void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated
To
- (void)mapView:(MKMapView * _Nonnull)mapView regionWillChangeAnimated:(BOOL)animated

Declaration
From
- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id<MKOverlay>)overlay
To
- (MKOverlayRenderer * _Nonnull)mapView:(MKMapView * _Nonnull)mapView rendererForOverlay:(id<MKOverlay> _Nonnull)overlay

Declaration
From
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation
To
- (MKAnnotationView * _Nullable)mapView:(MKMapView * _Nonnull)mapView viewForAnnotation:(id<MKAnnotation> _Nonnull)annotation

Declaration
From
- (void)mapViewDidFailLoadingMap:(MKMapView *)mapView withError:(NSError *)error
To
- (void)mapViewDidFailLoadingMap:(MKMapView * _Nonnull)mapView withError:(NSError * _Nonnull)error

Declaration
From
- (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView
To
- (void)mapViewDidFinishLoadingMap:(MKMapView * _Nonnull)mapView

Declaration
From
- (void)mapViewDidFinishRenderingMap:(MKMapView *)mapView fullyRendered:(BOOL)fullyRendered
To
- (void)mapViewDidFinishRenderingMap:(MKMapView * _Nonnull)mapView fullyRendered:(BOOL)fullyRendered

Declaration
From
- (void)mapViewDidStopLocatingUser:(MKMapView *)mapView
To
- (void)mapViewDidStopLocatingUser:(MKMapView * _Nonnull)mapView

Declaration
From
- (void)mapViewWillStartLoadingMap:(MKMapView *)mapView
To
- (void)mapViewWillStartLoadingMap:(MKMapView * _Nonnull)mapView

Declaration
From
- (void)mapViewWillStartLocatingUser:(MKMapView *)mapView
To
- (void)mapViewWillStartLocatingUser:(MKMapView * _Nonnull)mapView

Declaration
From
- (void)mapViewWillStartRenderingMap:(MKMapView *)mapView
To
- (void)mapViewWillStartRenderingMap:(MKMapView * _Nonnull)mapView

MKMultiPoint.h

Declaration
From
- (void)getCoordinates:(CLLocationCoordinate2D *)coords range:(NSRange)range
To
- (void)getCoordinates:(CLLocationCoordinate2D * _Nonnull)coords range:(NSRange)range

Declaration
From
- (MKMapPoint *)points
To
- (MKMapPoint * _Nonnull)points

MKOverlayPathRenderer.h

Declaration
From
- (void)applyFillPropertiesToContext:(CGContextRef)context atZoomScale:(MKZoomScale)zoomScale
To
- (void)applyFillPropertiesToContext:(CGContextRef _Nonnull)context atZoomScale:(MKZoomScale)zoomScale

Declaration
From
- (void)applyStrokePropertiesToContext:(CGContextRef)context atZoomScale:(MKZoomScale)zoomScale
To
- (void)applyStrokePropertiesToContext:(CGContextRef _Nonnull)context atZoomScale:(MKZoomScale)zoomScale

Declaration
From
@property(strong) NSColor *fillColor
To
@property(strong, nullable) NSColor *fillColor

Declaration
From
- (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context
To
- (void)fillPath:(CGPathRef _Nonnull)path inContext:(CGContextRef _Nonnull)context

Declaration
From
@property(copy) NSArray *lineDashPattern
To
@property(copy, nullable) NSArray<NSNumber *> *lineDashPattern

Declaration
From
@property CGPathRef path
To
@property CGPathRef _Null_unspecified path

Declaration
From
@property(strong) NSColor *strokeColor
To
@property(strong, nullable) NSColor *strokeColor

Declaration
From
- (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context
To
- (void)strokePath:(CGPathRef _Nonnull)path inContext:(CGContextRef _Nonnull)context

MKOverlayRenderer.h

Declaration
From
- (void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef)context
To
- (void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef _Nonnull)context

Declaration
From
- (instancetype)initWithOverlay:(id<MKOverlay>)overlay
To
- (instancetype _Nonnull)initWithOverlay:(id<MKOverlay> _Nonnull)overlay

Declaration
From
@property(nonatomic, readonly) id<MKOverlay> overlay
To
@property(nonatomic, readonly, nonnull) id<MKOverlay> overlay

MKPinAnnotationView.h

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

MKPlacemark.h

Declaration
From
@property(nonatomic, readonly) NSString *countryCode
To
@property(nonatomic, readonly, nullable) NSString *countryCode

Declaration
From
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate addressDictionary:(NSDictionary *)addressDictionary
To
- (instancetype _Nonnull)initWithCoordinate:(CLLocationCoordinate2D)coordinate addressDictionary:(NSDictionary<NSString *,id> * _Nullable)addressDictionary

MKPolygon.h

Declaration
From
@property(readonly) NSArray *interiorPolygons
To
@property(readonly, nullable) NSArray<MKPolygon *> *interiorPolygons

Declaration
From
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count
To
+ (instancetype _Nonnull)polygonWithCoordinates:(CLLocationCoordinate2D * _Nonnull)coords count:(NSUInteger)count

Declaration
From
+ (instancetype)polygonWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons
To
+ (instancetype _Nonnull)polygonWithCoordinates:(CLLocationCoordinate2D * _Nonnull)coords count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> * _Nullable)interiorPolygons

Declaration
From
+ (instancetype)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count
To
+ (instancetype _Nonnull)polygonWithPoints:(MKMapPoint * _Nonnull)points count:(NSUInteger)count

Declaration
From
+ (instancetype)polygonWithPoints:(MKMapPoint *)points count:(NSUInteger)count interiorPolygons:(NSArray *)interiorPolygons
To
+ (instancetype _Nonnull)polygonWithPoints:(MKMapPoint * _Nonnull)points count:(NSUInteger)count interiorPolygons:(NSArray<MKPolygon *> * _Nullable)interiorPolygons

MKPolygonRenderer.h

Declaration
From
- (instancetype)initWithPolygon:(MKPolygon *)polygon
To
- (instancetype _Nonnull)initWithPolygon:(MKPolygon * _Nonnull)polygon

Declaration
From
@property(nonatomic, readonly) MKPolygon *polygon
To
@property(nonatomic, readonly, nonnull) MKPolygon *polygon

MKPolyline.h

Declaration
From
+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count
To
+ (instancetype _Nonnull)polylineWithCoordinates:(CLLocationCoordinate2D * _Nonnull)coords count:(NSUInteger)count

Declaration
From
+ (instancetype)polylineWithPoints:(MKMapPoint *)points count:(NSUInteger)count
To
+ (instancetype _Nonnull)polylineWithPoints:(MKMapPoint * _Nonnull)points count:(NSUInteger)count

MKPolylineRenderer.h

Declaration
From
- (instancetype)initWithPolyline:(MKPolyline *)polyline
To
- (instancetype _Nonnull)initWithPolyline:(MKPolyline * _Nonnull)polyline

Declaration
From
@property(nonatomic, readonly) MKPolyline *polyline
To
@property(nonatomic, readonly, nonnull) MKPolyline *polyline

MKShape.h

Declaration
From
@property(nonatomic, copy) NSString *subtitle
To
@property(nonatomic, copy, nullable) NSString *subtitle

Modified MKShape.title
Declaration
From
@property(nonatomic, copy) NSString *title
To
@property(nonatomic, copy, nullable) NSString *title

MKTileOverlay.h

Declaration
From
- (instancetype)initWithURLTemplate:(NSString *)URLTemplate
To
- (instancetype _Nonnull)initWithURLTemplate:(NSString * _Nullable)URLTemplate

Declaration
From
- (void)loadTileAtPath:(MKTileOverlayPath)path result:(void (^)(NSData *tileData, NSError *error))result
To
- (void)loadTileAtPath:(MKTileOverlayPath)path result:(void (^ _Nonnull)(NSData * _Nullable tileData, NSError * _Nullable error))result

Declaration
From
- (NSURL *)URLForTilePath:(MKTileOverlayPath)path
To
- (NSURL * _Nonnull)URLForTilePath:(MKTileOverlayPath)path

Declaration
From
@property(readonly) NSString *URLTemplate
To
@property(readonly, nullable) NSString *URLTemplate

MKTileOverlayRenderer.h

Declaration
From
- (instancetype)initWithTileOverlay:(MKTileOverlay *)overlay
To
- (instancetype _Nonnull)initWithTileOverlay:(MKTileOverlay * _Nonnull)overlay

MKTypes.h

MKUserLocation.h

Declaration
From
@property(readonly, nonatomic) CLHeading *heading
To
@property(readonly, nonatomic, nullable) CLHeading *heading

Declaration
From
@property(readonly, nonatomic) CLLocation *location
To
@property(readonly, nonatomic, nullable) CLLocation *location

Declaration
From
@property(nonatomic, copy) NSString *subtitle
To
@property(nonatomic, copy, nullable) NSString *subtitle

Declaration
From
@property(nonatomic, copy) NSString *title
To
@property(nonatomic, copy, nullable) NSString *title