• 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: Formatting number for leading zeros
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: What's the argument aTableView used for?
  • Next by Date: Re: Cocoa frameworks/class diagrams or posters
  • Previous by thread: Re: how to get objects of type Class to play with NSCoder?
  • Next by thread: ABPeoplePickerView drag & drop
  • Index(es):
    • Date
    • Thread