Convert a NSString
Hi, How may I convert a NSString to a lisp string ? With the objc ³invoke-into² function the conversion is automatic. But, here, I need to convert a foreign-pointer to a NSSTring (not in the context of a objective-c method) I tried this (but the result is not good, some resulting strings have additional erratic characters at the end) : (defconstant NSUnicodeStringEncoding 10) (defun convert-NSString (NSStringRef) (let ((cstring (objc:invoke NSStringRef "cStringUsingEncoding:" NSUnicodeStringEncoding))) (fli:convert-from-foreign-string cstring :external-format :unicode))) maybe a simplest and more efficient way to do this ? Thanks Denis ---------------------------------------------------- Denis Pousseur 6 clos du Drossart 1180 Bruxelles, Belgique Mail : denis.pousseur@compositeurs.be Website : http://compositeurs.be ----------------------------------------------------