Re: Setting Min, MAx and range of characters for NSTextField
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