Re: Memory management in a thread
Re: Memory management in a thread
- Subject: Re: Memory management in a thread
- From: Sherm Pendley <email@hidden>
- Date: Sat, 13 Mar 2004 07:47:20 -0500
On Mar 13, 2004, at 7:06 AM, Hua Ying Ling wrote:
I didn't find any documentation stating these functions are
deprecated. Where did you see this?
I don't see anything about them being deprecated right now, but they
will be soon. See
<
http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/
Tasks/CreatingStrings.html>.
"To get a C string from a string object it is recommended to use
UTF8String. This returns a const char * using UTF8 string encoding. It
is also possible to create a C string from a string object using
lossyCString. This method uses the default C string encoding and may
loose information in the conversion to that encoding. ...
The use of cString, cStringLength, getCString:, getCString:maxLength:
and getCString:maxLength:range:remainingRange: is discouraged as these
methods will be deprecated in the near future."
By the way... "may loose information"??? C'mon folks, that's Slashdot
spelling... The word is "lose".
sherm--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.