• 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: Setting Min, MAx and range of characters for NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Min, MAx and range of characters for NSTextField


  • Subject: Re: Setting Min, MAx and range of characters for NSTextField
  • From: Preston Jackson <email@hidden>
  • Date: Thu, 9 Apr 2009 17:02:16 -0600

I have the same issue. I'm binding my NSTextField value to my model and using key-value validation to ensure the value is the right length. If the user enters a value that it too short, the coerced value will make it into my model, but the NSTextField keeps the pre- validate value.

Anyone have any ideas on this?

Preston Jackson
http://sidelightblog.blogspot.com

On Apr 8, 2009, at 8:36 AM, development2 wrote:

I hope someone can help me. I need to set a Min and Max length for an NSTextField. I also need to only allow certain characters that the user can enter. How can this be accomplished? Do I have to use an NSFormatter? If so are there any examples that someone can point me to?

Thanks 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

_______________________________________________

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


  • Follow-Ups:
    • Re: Setting Min, MAx and range of characters for NSTextField
      • From: Kyle Sluder <email@hidden>
References: 
 >Setting Min, MAx and range of characters for NSTextField (From: development2 <email@hidden>)

  • Prev by Date: Re: Send click to window
  • Next by Date: Re: Request for good advise to programmatically locate iMovie 09
  • Previous by thread: Setting Min, MAx and range of characters for NSTextField
  • Next by thread: Re: Setting Min, MAx and range of characters for NSTextField
  • Index(es):
    • Date
    • Thread