[Biococoa-dev] initWithUTF8String not working properly

Koen van der Drift kvddrift at earthlink.net
Tue Jul 19 18:19:42 EDT 2005

On Jul 19, 2005, at 5:39 PM, Charles Parnot wrote:

> Don't know about the warning, but the code should be
> symbolString  = [[NSString alloc] initWithBytes:&aChar length:  
> sizeof(unsigned char) encoding: NSUTF8StringEncoding];
> Actually, maybe the warning will go, as the method signature will  
> then be different.
> charles
> NB: and you could safely go with:
> symbolString  = [[NSString alloc] initWithBytes:&aChar length:1  
> encoding:NSUTF8StringEncoding];

Nope, I still get the same warning. Maybe has this to do with the SDK  
we are using?

Anyway, the crash is gone now, so that's good news!


- Koen.

More information about the Biococoa-dev mailing list