I know this one has been depreciated in 10.5 to but i never found a nice replacement until now:
message = [NSString stringWithCString:(buffer + 4) length:(arg2 -5)];
becomes:
message = [[[NSString alloc] initWithBytes:(buffer + 4) length:(arg2 -5) encoding:NSASCIIStringEncoding] autorelease];
I wanted to thank you for this excellent post. I absolutely liked every little bit of it. I have you bookmarked and will be coming back.
Hey, thanks for the pointer to what to replace that deprecated function with.
Cheers,
Donna
Thanks for this post… wish Apple could put stuff like this beside their deprecation notices.
Thanks a tonn for the exact replacement. Could not find it anywhere else. Saved a lot of time n effortt! 🙂