diff mac/dw.m @ 1023:8188f818eb9f

Changed initial spinbutton limits to -65536 to 65536 on Mac. Also set initial spinbutton value from the text field.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 18 May 2011 08:20:00 +0000
parents a943f973c3ff
children f15dc5226c35
line wrap: on
line diff
--- 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;
 }