• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to convert UInt8 array to NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to convert UInt8 array to NSString (From: Marc Lohse <email@hidden>)

  • Prev by Date: Accessing attributes of XML
  • Next by Date: Re: Flash'In'App – Free Cocoa Framework
  • Previous by thread: How to convert UInt8 array to NSString
  • Next by thread: Re: How to convert UInt8 array to NSString
  • Index(es):
    • Date
    • Thread