View Single Post
  #5  
Old May 17th, 2008, 10:57 AM
Mikuro's Avatar
Mikuro Mikuro is offline
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,462
Thanks: 3
Thanked 10 Times in 9 Posts
Mikuro is on a distinguished road
If asciitounicode() returns UTF16 data, you will need to pass UTF16 string encoding to initWithBytes. I'm not sure whether you should use NSUnicodeStringEncoding, NSUTF16BigEndianStringEncoding or NSUTF16LittleEndianStringEncoding, since I don't know exactly what asciitounicode() does.

Aside from that, yeah, that looks about right.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote