Re: a string from an integer
Re: a string from an integer
- Subject: Re: a string from an integer
- From: Shawn Erickson <email@hidden>
- Date: Wed, 23 Jul 2003 22:42:31 -0700
On Wednesday, July 23, 2003, at 08:29 PM, Lazee Software wrote:
ok... well
NSString *someString;
int someinteger = 100;
someString =[someinteger stringValue];
does not yield a string which is the number help in someinteger.
Why can't I get a string from a number?
I could just put it in the textfield, then pull it back but that seems
like a huge waste of cycles.
Note that an "int" is not an object, it cannot respond to messages. I
would grok the following...
http://developer.apple.com/documentation/Cocoa/Conceptual/
DataFormatting/Tasks/FormatStrings.html#//apple_ref/doc/uid/20000943
-Shawn
_______________________________________________
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.