# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1305706800 0 # Node ID 8188f818eb9f1d0572f6753677cb520771b1da94 # Parent fa1a826348b3ac716ec6d5ff40bfb21435609548 Changed initial spinbutton limits to -65536 to 65536 on Mac. Also set initial spinbutton value from the text field. diff -r fa1a826348b3 -r 8188f818eb9f mac/dw.m --- a/mac/dw.m Wed May 18 08:14:14 2011 +0000 +++ b/mac/dw.m Wed May 18 08:20:00 2011 +0000 @@ -3482,8 +3482,13 @@ { DWSpinButton *spinbutton = [[DWSpinButton alloc] init]; NSStepper *stepper = [spinbutton stepper]; + NSTextField *textfield = [spinbutton textfield]; [stepper setIncrement:1]; [stepper setTag:cid]; + [stepper setMinValue:-65536]; + [stepper setMaxValue:65536]; + [stepper setIntValue:atoi(text)]; + [textfield takeIntValueFrom:stepper]; return spinbutton; }