Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Fixed crash on OS X 10.10.0–10.10.2
Browse files Browse the repository at this point in the history
-[NSSegmentedControl setTrackingMode:] is only available in OS X 10.10.3 and above.
  • Loading branch information
1ec5 committed Nov 30, 2015
1 parent 4ecacbe commit fb1fbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/osx/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ - (void)commonInit {
_zoomControls = [[NSSegmentedControl alloc] initWithFrame:NSZeroRect];
_zoomControls.wantsLayer = YES;
_zoomControls.layer.opacity = 0.9;
_zoomControls.trackingMode = NSSegmentSwitchTrackingMomentary;
[(NSSegmentedCell *)_zoomControls.cell setTrackingMode:NSSegmentSwitchTrackingMomentary];
_zoomControls.continuous = YES;
_zoomControls.segmentCount = 2;
[_zoomControls setLabel:@"" forSegment:0];
Expand Down

0 comments on commit fb1fbc4

Please sign in to comment.