Fixed a crash that often occurred when switching styles. MGLMapView was ahead of MapDocument in the responder chain, so calls to -setStyle: were going to MGLMapView’s private -setStyle: method. The sender was being passed in the first parameter instead of an MGLStyle method.
15 lines
244 B
Objective-C
15 lines
244 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
@class MGLMapView;
|
|
|
|
@interface MapDocument : NSDocument
|
|
|
|
@property (weak) IBOutlet MGLMapView *mapView;
|
|
|
|
- (IBAction)showStyle:(id)sender;
|
|
- (IBAction)chooseCustomStyle:(id)sender;
|
|
|
|
- (IBAction)reload:(id)sender;
|
|
|
|
@end
|