Re: convert int to NSString
Re: convert int to NSString
- Subject: Re: convert int to NSString
- From: John Randolph <email@hidden>
- Date: Wed, 21 Apr 2004 21:37:35 -0700
On Apr 21, 2004, at 9:18 PM, Adam wrote:
[NewBe isGettingItSlowly]
I have searched the net and my trusty O'reilly book and I just cant
find the simple answer.
If I have an int
(int x = 27)
how do I convert it into an NSString so I can display it somewhere in
the GUI?
NSString *theDigitsIWant = [[NSNumber numberWithInt:x] stringValue];
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.