• 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
How to control text that is allowed in a NSTextField control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to control text that is allowed in a NSTextField control


  • Subject: How to control text that is allowed in a NSTextField control
  • From: brian barrington <email@hidden>
  • Date: Tue, 21 Aug 2007 17:22:48 +0200

I want to be able to control the characters accepted by an NSTextField. Initially I need some way to limit character input to numbers (1-9, plus, minus, comma, dot).
I'd like to know 2 ways of doing this:-


- static. If this feature is buried somewhere in Interface Builder that would be great.
- dynamic i.e. at run-time I can programatically control characters input.


If anybody knows how to apply a regular expression as a mask that would be even better.

Thanks for your help.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to control text that is allowed in a NSTextField control
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: How are stdlib.h and time.h imported?
  • Next by Date: Re: How to control text that is allowed in a NSTextField control
  • Previous by thread: Re: Strange message?
  • Next by thread: Re: How to control text that is allowed in a NSTextField control
  • Index(es):
    • Date
    • Thread