Thanks to all who responded.
I'm thinking I may not have been clear enough that the issue was with the Cocoa widgetset.
@Zvoni: Nice, concise code, but it doesn't work in my case 😞.
Remark: NumbersOnly is not supported for the GTK2 or GTK3 widgetset.
Nor, does it seem, is it supported fo Cocoa.
@Ally: Thanks, I'll take a look at it.