Re: invalid formatter values
Re: invalid formatter values
- Subject: Re: invalid formatter values
- From: Mitchell Livingston <email@hidden>
- Date: Sat, 17 Nov 2007 23:49:32 -0500
Through experimentation, I have found that removing the binding on the
text field (in this case I was just binding the "enabled" value)
resolves the problem. However, I do not want to lose this
functionality. Is there something I can do to get this working?
Thanks,
Mitchell Livingston
On Nov 13, 2007, at 11:35 PM, Mitchell Livingston wrote:
Hello,
I have a number formatter on a text field to reject values less than
zero. I want to make it so that it will revert the value to the
pervious value and not call the action function for invalid values.
I have control:didFailToFormatString:errorDescription: return NO,
but the action function is still called. Is there a way to not call
it when the value is invalid, and is there a straight-forward way to
set the field to the previous, valid value?
Thanks,
Mitchell Livingston
_______________________________________________
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