Conversion from object to NSString
Conversion from object to NSString
- Subject: Conversion from object to NSString
- From: John Cebasek <email@hidden>
- Date: Thu, 27 Jan 2005 09:52:31 -0500
Hi All:
I've got an NSArray that gets populated with a bunch of Strings. If later on, I want to get back to the strings, I do:
int nIndex = [tokenList_ indexOfSelectedItem];
id anObject = [serialNumberArray objectAtIndex:nIndex];
So, I thought I'd try to get it back into a readable form with (the length = 100 is just a guess):
NSMutableString *serialNumberString = [[NSString alloc] initWithBytes:anObject length:100];
But that doesn't work. So how does on get from an object to a NSString?
Thanks very much
John
_______________________________________________
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