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>
>
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>
>






Cocoa mail archive

