Re: Prevent space characters in a NSTextField
Re: Prevent space characters in a NSTextField
- Subject: Re: Prevent space characters in a NSTextField
- From: "Sean McBride" <email@hidden>
- Date: Mon, 22 Nov 2004 23:34:37 -0500
Lorenzo (email@hidden) on Mon, Nov 22, 2004 12:08 said:
>even if I attach an "integer formatter" into my NSTextField, whenever the
>user hits the space key I see the space written within the field and, in
>some cases, replacing the old value.
>Of course at the end of the editing the formatter doesn't accept the string,
>but I would like to totally ignore all the characters different than numbers
>and "." and ",". This way, if the user hit a space or a "x", the field
>doesn't get modified at all.
And if 'space' is a separator character? Here in Canada for example, the
thousands separator is space, hence "1 000 000" is a valid integer string
that a user may type.
--
Erroneous google translation: "To make return vegetables in 2 C to tea of
vinaigrette to crystallized tomatos and origan of Kraft, or other, until
A what the vegetables are tender."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden