Re: stringWithCString:length deprecation

2009-10-07 Thread Scott Thompson
But that doesn't look like a real replacement. Shouldn't there be a stringWithCString:length:encoding What am I missing? I think what you're missing is: - (id)initWithBytes:(const void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding; Scott _

Re: stringWithCString:length deprecation

2009-10-07 Thread Graham Cox
On 07/10/2009, at 11:00 PM, Torsten Curdt wrote: But that doesn't look like a real replacement. Shouldn't there be a stringWithCString:length:encoding What am I missing? Pointers? Comments? Suggestions? My guess is that in deprecating this they also took the opportunity to remove an API

stringWithCString:length deprecation

2009-10-07 Thread Torsten Curdt
Hey folks, I am in the middle of cleaning up code and moving it to 10.5+ 64bit. For most things it's quite straight forward, but one of the deprecations to get rid of is: stringWithCString:length cString must not be NULL. cString should contain characters in the default C-string encoding. This