• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Prevent space characters in a NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Prevent space characters in a NSTextField (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Crash on [event locationInWindow]
  • Next by Date: Re: Check if a file is an alias
  • Previous by thread: Re: Prevent space characters in a NSTextField
  • Next by thread: Re: setNeedsDisplayInRect
  • Index(es):
    • Date
    • Thread