Empty NSTextField from NSStepper
Empty NSTextField from NSStepper
- Subject: Empty NSTextField from NSStepper
- From: Douglas Norton <email@hidden>
- Date: Wed, 31 Oct 2001 17:03:50 +0000
I have a sheet containing, amongst others, an NSTextField and an NSStepper.
The two are interlinked in IB. The NSTextField takes the stringValue from
the NSStepper and the NSStepper takes the intValue from the NSStepper.
The NSTextField has a formatter to make it only hold the numbers 0 through
23. Similarly then min and max on the NSStepper are 0 and 23.
For single click operation, and manual typing, all is satisfactory, they
stay in step with each other.
However, when I hold the mouse down on the NSStepper, it auto repeats, which
is fine, but when I release the mouse, approximately 30% of the time the
NSTextField is blank or contains a ':' character.
Is this a known problem? Have I missed out something that should be keeping
things in step?
TIA
Douglas Norton
Softchaos Limited.