-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)
END_EVENT_TABLE()
WX_IMPLEMENT_COCOA_OWNER(wxSlider,NSSlider,NSControl,NSView)
// minValue > maxValue not handled, tickMarks set to 0
if ( style & wxSL_AUTOTICKS )
tickMarks = ((maxValue - minValue >= 0) ? (maxValue - minValue) : 0);
// minValue > maxValue not handled, tickMarks set to 0
if ( style & wxSL_AUTOTICKS )
tickMarks = ((maxValue - minValue >= 0) ? (maxValue - minValue) : 0);
{
const int numTicks = (n > 0) ? ((GetMax() - GetMin()) / n) + 1 : 0;
[GetNSSlider() setNumberOfTickMarks:numTicks];
{
const int numTicks = (n > 0) ? ((GetMax() - GetMin()) / n) + 1 : 0;
[GetNSSlider() setNumberOfTickMarks:numTicks];