Converts an Objective-C NSString
to a Lisp string.
objc
ns-string-to-string ns-string &optional preserve-line-terminators => string
ns-string⇩ |
A pointer to an Objective-C foreign object of type NSString . |
preserve-line-terminators⇩ | |
A generalized boolean. |
string |
A string. |
The function ns-string-to-string
returns a Lisp string containing the characters in ns-string.
If preserve-line-terminators is nil
(the default), then character code 13 is ignored after character code 10 and other occurrences of character code 13 are converted to #Newline. This allows lines to be terminated by LF, CR or CRLF. Otherwise, character code 13 is converted to #Return.
ns-string-to-string
was defined in previous versions of LispWorks but was not documented until LispWorks 8.1.
LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 18 Feb 2025 15:39:48