All Manuals > LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual > 2 Objective-C Reference

string-to-ns-string Function

Summary

Converts a Lisp string to an Objective-C NSString.

Package

objc

Signature

string-to-ns-string string &optional autoreleasep => ns-string

Arguments
string
A string.
autoreleasep
A generalized boolean.
Values
ns-string
A pointer to an Objective-C foreign object of type NSString.
Description

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.

Notes

string-to-ns-string was defined in previous versions of LispWorks but was not documented until LispWorks 8.1.

See also

ns-string-to-string


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 18 Feb 2025 15:39:48