• 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: display int in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >display int in cocoa (From: "Erfan Aleemullah" <email@hidden>)
 >Re: display int in cocoa (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: NSAutoreleasePool and static data member constructors
  • Next by Date: Re: How an I get an NSAttributedString into an NSView?
  • Previous by thread: Re: display int in cocoa
  • Next by thread: Core Data modelling question re: OutlineEdit example
  • Index(es):
    • Date
    • Thread