• 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: int to NSString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: int to NSString?


  • Subject: Re: int to NSString?
  • From: "Marcus S. Zarra" <email@hidden>
  • Date: Mon, 25 Jun 2007 11:27:54 -0600

There are serveral ways:

NSString *string = [NSString stringWithFormat:@"%u", 123];
NSString *string = [[NSNumber numberWithInt:123] stringValue];

and probably others.

There is no NSInt but review NSNumber.  It is where you want to start.

Marcus S. Zarra
Zarra Studios LLC
Simply Elegant Software for OS X
www.zarrastudios.com

On 6/23/07, Devraj Mukherjee <email@hidden> wrote:
Hi everyone,

How do I convert an int to an NSString? Also is there an NSInt or a
NSInteger class?

Thanks for your time.

_______________________________________________

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: 
 >int to NSString? (From: "Devraj Mukherjee" <email@hidden>)

  • Prev by Date: Re: int to NSString?
  • Next by Date: Re: Best drawing technology for audio waveforms, envelopes, etc.?
  • Previous by thread: Re: int to NSString?
  • Next by thread: Re: int to NSString?
  • Index(es):
    • Date
    • Thread