Re: constrain number input?
Re: constrain number input?
- Subject: Re: constrain number input?
- From: Boris Remizov <email@hidden>
- Date: Tue, 28 Aug 2007 12:40:01 +0400
Hi, You may use NSFormatter and attach it to the NSTextField.
On Aug 28, 2007, at 19:28 , Jim Raynor wrote:
Hi list.
Although a similar question is asked before, I still need more help.
I want to create a NSTextfield which can constrain number input
formatter.
For example, you can only input the number like "XXX:XXX:XXX:XXX"
into the NSTextfield.
Is there any simple way to do this? Of course, we can write lots of
code to exam the format and parse the input content, however, I am
seeking an easy way to accomplish this task.
Any idea is appreciated. Thank you in advance.
_______________________________________________
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