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