Converts a Lisp string to an Objective-C NSString
.
objc
string-to-ns-string string &optional autoreleasep => ns-string
string⇩ |
A string. |
autoreleasep⇩ |
A generalized boolean. |
ns-string⇩ |
A pointer to an Objective-C foreign object of type NSString . |
The function string-to-ns-string
returns a pointer to an Objective-C foreign object of type NSString
containing the characters in string.
If autoreleasep is non-nil, then ns-string is autoreleased. Otherwise, you are responsible to ensuring that ns-string is released when no longer needed. autoreleasep defaults to nil
.
string-to-ns-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