cString is depreciated

Hi Everyone,

I am cleaning up my warnings, and have run into one that is eluding me....

I am creating a sql line to insert into the sqlite database....

and needed to convert from a
NSString *work
to a
static char *

I am currently using

sql = [work cString];

to do the conversion, but the IDE/Compiler is throwing a warning saying that
cString is depreciated.

Is there a new and improved conversion process that will releave me of the warning??

thank you
tony

Macbook Pro, Mac OS X (10.6.2), Developing for iTouch

Posted on Mar 29, 2010 6:01 AM

Reply
5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

cString is depreciated

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.