Mercurial > dwindows
changeset 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 | fa1a826348b3 |
children | 814e4767277f |
files | mac/dw.m |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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; }