FROM : mmalcolm crawford
DATE : Fri Nov 26 23:58:13 2004
On Nov 26, 2004, at 2:07 PM, Andrew Farmer wrote:
> and remember that + (NSString) stringWithCString; and - (NSString)
> cString; are your friends.
>
As friends, + stringWithCString: and -cString are rather fickle. They
may give rise to problems related to encoding, and should be considered
deprecated. You are encouraged to use initWithBytes:length:encoding:
(or initWithBytesNoCopy:length:encoding:freeWhenDone:) and
dataUsingEncoding:allowLossyConversion: instead.
mmalc
DATE : Fri Nov 26 23:58:13 2004
On Nov 26, 2004, at 2:07 PM, Andrew Farmer wrote:
> and remember that + (NSString) stringWithCString; and - (NSString)
> cString; are your friends.
>
As friends, + stringWithCString: and -cString are rather fickle. They
may give rise to problems related to encoding, and should be considered
deprecated. You are encouraged to use initWithBytes:length:encoding:
(or initWithBytesNoCopy:length:encoding:freeWhenDone:) and
dataUsingEncoding:allowLossyConversion: instead.
mmalc
| Related mails | Author | Date |
|---|---|---|
| Oliver Cameron | Nov 26, 12:19 | |
| Oliver Cameron | Nov 26, 19:44 | |
| Glenn Andreas | Nov 26, 23:00 | |
| Andrew Farmer | Nov 26, 23:07 | |
| Guy English | Nov 26, 23:52 | |
| mmalcolm crawford | Nov 26, 23:58 | |
| Matthew | Dec 10, 23:11 | |
| Chris Eplett | Dec 14, 13:47 |






Cocoa mail archive

