+[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 PROTECTED]
----------------------------------------------




This email was Anti Virus checked by the MPIMP-Golm Astaro Security Gateway.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 [EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to