[Openmcl-devel] Objective-C string to lisp string?
Pascal J. Bourguignon
pjb at informatimago.com
Wed Apr 6 15:41:56 PDT 2011
Paul Krueger <plkrueger at comcast.net> writes:
> Answered my own question: operator
> error. ccl::lisp-string-from-nsstring works fine for all
> NSStrings. The ccl::@ macro creates an NSConstantString which by
> definition is a subclass of NSSimpleCString (i.e. not an encoded
> string). So if you want an NSString with UTF8 characters you can use
> something like:
>
> ? (objc:make-nsstring "été")
> #<NS-MUTABLE-STRING "été" (#x16038F80)>
> ? (ccl::lisp-string-from-nsstring *)
> "été"
> ?
Thank you. Yes, the other message from Gary explains everything.
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
More information about the Openmcl-devel
mailing list