X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..7d6a4d96961eac84d05db8bb24c64d39003f6e54:/src/cocoa/slider.mm?ds=sidebyside diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index b469a2a67f..5ab19e01ef 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -26,8 +26,7 @@ #import #import -IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl) - BEGIN_EVENT_TABLE(wxSlider, wxSliderBase) +BEGIN_EVENT_TABLE(wxSlider, wxSliderBase) END_EVENT_TABLE() WX_IMPLEMENT_COCOA_OWNER(wxSlider,NSSlider,NSControl,NSView) @@ -88,8 +87,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid, // minValue > maxValue not handled, tickMarks set to 0 if ( style & wxSL_AUTOTICKS ) tickMarks = ((maxValue - minValue >= 0) ? (maxValue - minValue) : 0); - // arg2 needed a value, doesnt do anything - SetTickFreq(tickMarks,1); + SetTickFreq(tickMarks); return true; } @@ -207,7 +205,7 @@ int wxSlider::GetMax() const return [GetNSSlider() maxValue]; } -void wxSlider::SetTickFreq(int n, int pos) +void wxSlider::DoSetTickFreq(int n) { const int numTicks = (n > 0) ? ((GetMax() - GetMin()) / n) + 1 : 0; [GetNSSlider() setNumberOfTickMarks:numTicks];