• 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: 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


  • Follow-Ups:
    • Re: display int in cocoa
      • From: Uli Kusterer <email@hidden>
References: 
 >display int in cocoa (From: "Erfan Aleemullah" <email@hidden>)

  • Prev by Date: Re: Custom compare: for NSDate sort descriptor
  • Next by Date: Re: NSAutoreleasePool and static data member constructors
  • Previous by thread: Re: display int in cocoa
  • Next by thread: Re: display int in cocoa
  • Index(es):
    • Date
    • Thread