Copies all characters from the receiver into a given buffer.
- iOS 2.0–4.0Deprecated
- macOS 10.0–10.6Deprecated
- tvOS 9.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
Upon return, contains the characters from the receiver.
buffermust be large enough to contain all characters in the string (
buffer and the entire extent of the receiver as the range.