Re: Formatter - 2 decimal places
Re: Formatter - 2 decimal places
- Subject: Re: Formatter - 2 decimal places
- From: "Jay Rimalrick" <email@hidden>
- Date: Mon, 17 Nov 2003 02:20:12 -0500
I hacked a way to do it. I capture the string coming in and count the decimal places based on some built in string functions. If the decimal places are less than or equal to 2 I use the value else if there are more than 2 decimal places i redisplay the text field with the correct 2 decimal value.
-jay
---------- Original Message ----------------------------------
From: "Jay Rimalrick" <email@hidden>
Reply-To: <email@hidden>
Date: Mon, 17 Nov 2003 00:49:35 -0500
>
Is there a way to limit a users input to two decimal places? By using the interface builder formatters the user can type in 9.9999 and when they click off of the text box it rounds up to 10 but I want then to only be able to enter 9.99 then it stops accepting their input.
>
>
Let me know if there is a way
>
>
Thanks in advance,
>
-jay
>
>
>
>
>
________________________________________________________________
>
Sent via the WebMail system at 1st.net
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
>
________________________________________________________________
Sent via the WebMail system at 1st.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.