Re: Formatting number for leading zeros
Re: Formatting number for leading zeros
- Subject: Re: Formatting number for leading zeros
- From: "I. Savant" <email@hidden>
- Date: Wed, 11 Jul 2007 14:26:09 -0400
On 7/11/07, development2 <email@hidden> wrote:
I hope someone can help me. I have a preference field that allows
users to enter a starting range number, now they need to be able to
start numbers at say 000001 or -000001 for example. Now I can do this
in the preference field because right now it is a string. If I add a
number formatter to it, the next time it is displayed it displays as
either 1 or -1. Is there anyway to set this up so it keeps the
leading zeros?
You can set this in the Formatter's properties in IB.
If you have the inspector palette open in IB when you drag the
formatter into your text field, it automatically selects the
""Formatter" inspector page. Alternatively you can click the text
field, then drop down the inspector panel's popup and select it
yourself ...
--
I.S.
_______________________________________________
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