• 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: constrain number input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >constrain number input? (From: Jim Raynor <email@hidden>)

  • Prev by Date: Distributed objects + timeouts
  • Next by Date: Re: How do you found your way around in the ref docs?
  • Previous by thread: constrain number input?
  • Next by thread: How to create Hypertext in cocoa applications?
  • Index(es):
    • Date
    • Thread