Re: int to NSString?
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