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

Re: How to control text that is allowed in a NSTextField control


  • Subject: Re: How to control text that is allowed in a NSTextField control
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 21 Aug 2007 08:47:15 -0700

On 8/21/07, brian barrington <email@hidden> wrote:
> 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.

<http://developer.apple.com/documentation/Cocoa/Conceptual/DataFormatting/index.html>

-Shawn
_______________________________________________

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

References: 
 >How to control text that is allowed in a NSTextField control (From: brian barrington <email@hidden>)

  • Prev by Date: How to control text that is allowed in a NSTextField control
  • Next by Date: Re: Binding NSMenuItem 1 to 1
  • Previous by thread: How to control text that is allowed in a NSTextField control
  • Next by thread: Handling multiple document Windows
  • Index(es):
    • Date
    • Thread