Re: display int in cocoa
Re: display int in cocoa
- Subject: Re: display int in cocoa
- From: Uli Kusterer <email@hidden>
- Date: Thu, 11 Oct 2007 01:52:08 +0200
Am 11.10.2007 um 00:08 schrieb Chris Hanson:
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.
Or in other words: Our Arabic numbers aren't ;-)
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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