• 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: invalid formatter values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >invalid formatter values (From: Mitchell Livingston <email@hidden>)

  • Prev by Date: Re: Leopard performance penalty (3x slower), NSPopAutoreleasePool
  • Next by Date: Webkit / Cocoa window flashing again...
  • Previous by thread: Re: invalid formatter values
  • Next by thread: Heads Up: Code generation bug
  • Index(es):
    • Date
    • Thread