Copies all characters from the receiver into a given buffer.
- iOS 2.0–4.0Deprecated
- macOS 10.0–10.6Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- 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.