Re: Formatting number for leading zeros
Re: Formatting number for leading zeros
- Subject: Re: Formatting number for leading zeros
- From: Thomas Engelmeier <email@hidden>
- Date: Tue, 18 Sep 2007 11:00:44 +0200
Am 11.07.2007 um 22:28 schrieb development2:
Thanks, yes I know that, and that what I have already done. But the
problem with this is if I set it to use the Format positive: 00000
and negative: -00000, and the user types in say 99, after they hit
return it shows as 00099, I don't want that unless the user actually
puts in the leading zeros. If they do not put in the leading zeros
then I want it to show 99 like they typed in, but if they do type in
the leading zeros, however many they type in, I want to keep that
for them. I need to keep the format that they type in. So after
looking at this I guess I will have to write my own formatter for
this problem.
You do not want an Formatter - i.e. something that provides always
uniform display - but probably some validation mechanismn for your
input.
_______________________________________________
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