Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > NSString 2 cStr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 904 of 1039
Post > Topic >>

NSString 2 cString [memory mngr question]

by YL <elim.qiu@[EMAIL PROTECTED] > Sep 19, 2007 at 08:20 AM

We get a c-string from NSString like this:
char* aString = [MyString cString];
But how to manage the memory of aString?

i.e.  When I don't need aString anymore, I have to free it or not?

Thanks
 




 5 Posts in Topic:
NSString 2 cString [memory mngr question]
YL <elim.qiu@[EMAIL PR  2007-09-19 08:20:31 
Re: NSString 2 cString [memory mngr question]
Delphine <it.emeraldio  2007-09-19 10:32:17 
Re: NSString 2 cString [memory mngr question]
Reinder Verlinde <rein  2007-09-19 10:50:07 
Re: NSString 2 cString [memory mngr question]
Gregory Weston <uce@[E  2007-09-19 07:37:51 
Re: NSString 2 cString [memory mngr question]
YL <elim.qiu@[EMAIL PR  2007-09-19 17:14:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 20:05:02 CDT 2008.