Re: int to NSString?
Re: int to NSString?
- Subject: Re: int to NSString?
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 25 Jun 2007 12:50:53 -0600
On Jun 23, 2007, at 11:49 PM, Devraj Mukherjee wrote:
How do I convert an int to an NSString?
NSString *stringFromInt = [NSString stringWithFormat:@"%d", someInt];
Also is there an NSInt or a
NSInteger class?
No, but there is NSNumber. However, NSNumber is generally used for
wrapping primitives, not replacing them.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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