[Biococoa-dev] NSMutableData vs malloc
Koen van der Drift
kvddrift at earthlink.net
Sun Jul 17 07:46:16 EDT 2005
On Jul 16, 2005, at 9:11 PM, Koen van der Drift wrote:
> I changed it to:
>
> symbolString = [[NSString alloc] initWithCString: (char *)
> &aChar length: 1];
>
> It seems to work (no compiler warnings) but I am not sure if this
> is the right way to go.
Just read in the docs that initWithCString is deprecated in 10.4, so
we need to think of something else. The suggested method
initWithCString:encoding only works in 10.4, so that's not going to
help either.
any ideas?
cheers,
- Koen.
More information about the Biococoa-dev
mailing list