Project: SWT
Bug 222791 Spinner accepts non-numeric input in Cocoa
Reported: 2008-03-14 14:40:37 | Status: resolved fixed

Build ID: I20080207-1530 Steps To Reproduce: 1. Open Control example 2. Choose 'Spinner' tab 3. Type non-numeric characters into the spinner box (e.g. 'abc') Note that the spinner input accepts non-numerics, unlike other platforms like Carbon where only numbers are accepted.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSCharacterSet.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSFormatter.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumberFormatter.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Spinner.java