Re: How to control text that is allowed in a NSTextField control
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