Files
MapLibreParticleLab/platform/macos/app/MapDocument.h
Minh Nguyễn 03a2dbe361 [macos] Avoid first responder action name conflict
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.
2016-11-28 15:45:43 -08:00

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