Skip navigation.
 
mlRe: How to convert UInt8 array to NSString
FROM : Hank Heijink (Mailinglists)
DATE : Mon May 05 14:56:12 2008

+[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_removed>
> ----------------------------------------------
>
>
>
>
> This email was Anti Virus checked by the MPIMP-Golm Astaro Security 
> Gateway.
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/hank.list
> %40runbox.com
>
> This email sent to hank.<email_removed>
>

Related mailsAuthorDate
mlHow to convert UInt8 array to NSString Marc Lohse May 5, 14:17
mlRe: How to convert UInt8 array to NSString Hank Heijink (Mail… May 5, 14:56
mlRe: How to convert UInt8 array to NSString Jens Alfke May 5, 18:20
mlRe: How to convert UInt8 array to NSString Thomas Engelmeier May 6, 16:03
mlRe: How to convert UInt8 array to NSString Jens Alfke May 6, 17:56
mlRe: How to convert UInt8 array to NSString Aki Inoue May 6, 19:45
mlRe: How to convert UInt8 array to NSString Clark Cox May 6, 19:56
mlRe: How to convert UInt8 array to NSString Ricky Sharp May 7, 00:37
mlRe: How to convert UInt8 array to NSString Jens Alfke May 7, 04:22
mlRe: How to convert UInt8 array to NSString Ricky Sharp May 7, 04:53
mlRe: How to convert UInt8 array to NSString Gary L. Wade May 7, 19:33
mlRe: How to convert UInt8 array to NSString Jean-Daniel Dupas May 7, 20:54
mlRe: How to convert UInt8 array to NSString Gary L. Wade May 7, 21:27
mlRe: How to convert UInt8 array to NSString Jean-Daniel Dupas May 7, 21:36
mlRe: How to convert UInt8 array to NSString Adam R. Maxwell May 7, 22:14
mlRe: How to convert UInt8 array to NSString Gary L. Wade May 8, 20:07
mlRe: How to convert UInt8 array to NSString Joe Goh May 8, 21:26