Re: How do I convert NSNumber value to NSString?
Re: How do I convert NSNumber value to NSString?
- Subject: Re: How do I convert NSNumber value to NSString?
- From: Lee Morgan <email@hidden>
- Date: Sat, 9 Apr 2005 17:26:09 -0400
How about simply
NSString *myString = [aNumber stringValue];
So...
NSLog([aNumber stringValue]);
Also the two following are very handy at times...
NSLog(@"%@", aNumber); // Log any cocoa object
NSLog([aNumber description]); // Log a string description of any cooca
object
- lee
On Apr 9, 2005, at 5:21 PM, Jerry Brace wrote:
Is there a way to convert a NSNumber value to a NSString?
I'm trying to do a NSLog on a numeric value - I am assuming my error
is that the value is numeric and I would need to convert it to a
string.
Jerry Brace
Web and Multimedia Developer
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden