Hi all, NSNumberFormatter, applied to an NSTextField, will very nicely reject things like letters, and optionally a bunch of things like negative numbers, non-integers, etc.
But I've just noticed that it doesn't seem to help if the textfield is left entirely empty. Is that not something NSNumberFormatter can help with? I just find that surprising with all the other options it has... If it can't, I guess the best choices are using NSControlTextEditingDelegate or key value validation...? Thanks, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com