Returns a representation of the receiver as a C string in the default C-string encoding, possibly losing information in converting to that encoding.
- iOS 2.0–2.0Deprecated
- macOS 10.0–10.4Deprecated
- tvOS 9.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
This method does not raise an exception if the conversion is lossy. The returned C string will be automatically freed just as a returned object would be released; your code should copy the C string or use
get if it needs to store the C string outside of the autorelease context in which the C string is created.