Re: display int in cocoa
Re: display int in cocoa
- Subject: Re: display int in cocoa
- From: Chris Hanson <email@hidden>
- Date: Wed, 10 Oct 2007 15:08:00 -0700
On Oct 10, 2007, at 11:10 AM, Erfan Aleemullah wrote:
I am trying to display an int as a page number in cocoa so the user
knows
which page he is currently on.
The proper way to format an value for presentation to the user in
Cocoa is to use an NSFormatter. In the case of an integer, use
NSNumberFormatter. It's important to do this in order to ensure that
proper locale-specific formatting is applied if required, or not
applied if it's not.
-- Chris
_______________________________________________
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