Re: convert int to NSString
Re: convert int to NSString
- Subject: Re: convert int to NSString
- From: Dave Keck <email@hidden>
- Date: Thu, 22 Apr 2004 00:36:21 -0400
Hey,
[NSString stringWithFormat: @"%d", x];
Where x is your integer. FYI, all (as far as I know) methods using
"WithFormat:", use the printf-style formatting.
Have fun,
Dave
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?
_______________________________________________
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.