[Biococoa-dev] initWithUTF8String not working properly

Koen van der Drift kvddrift at earthlink.net
Tue Jul 19 17:31:03 EDT 2005

On Jul 19, 2005, at 7:53 AM, John Timmer wrote:

> Ah, you're handing it a character, not a zero-terminated string.  Try
> "initWithBytes:length:encoding" using " NSUTF8StringEncoding"

I tried that too, but that gives me the following warning:

warning: no '-initWithBytes:length:encoding:' method found
warning: (Messages without a matching method signature
warning: will be assumed to return 'id' and accept
warning: '...' as arguments.)

symbolString  = [[NSString alloc] initWithBytes: aChar length: sizeof 
(unsigned char) encoding: NSUTF8StringEncoding];


- Koen.

More information about the Biococoa-dev mailing list