Re: How to convert UInt8 array to NSString
Re: How to convert UInt8 array to NSString
- Subject: Re: How to convert UInt8 array to NSString
- From: "Hank Heijink (Mailinglists)" <email@hidden>
- Date: Mon, 5 May 2008 08:56:12 -0400
+[NSString stringWithUTF8String:] is what you're looking for. I
*think* UInt8 and char are always the same size, but I'm not 100% sure
if you can always depend on that. If you can, you can just feed your
UInt8 array to the function.
Hope this helps,
Hank
On May 5, 2008, at 8:17 AM, Marc Lohse wrote:
Hello,
i am quite a newbie to objective-c and c and hence
have to ask this certainly stupid newbie question.
A C function that i'd like to use returns an array
of UInt8 and i simply don't find out how to convert
this into a NSString...
Is there anybody willing to point me in the right
direction?
Thanks,
Marc
----------------------------------------------
Dr. Marc Lohse
Max-Planck-Institute of molecular plant physiology
AG Usadel
Am Muehlenberg 1
14476 Potsdam-Golm
email. email@hidden
----------------------------------------------
This email was Anti Virus checked by the MPIMP-Golm Astaro Security
Gateway.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@runbox.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden