[Openmcl-devel] cocoa and unicode

alex crain alexcrain at mail2.widgetworks.com
Tue Sep 21 20:09:08 PDT 2004


I want to display unicode strings in an NSTextView.

So, I need an NSAttributedString build from unicode.

So, I need to create an array of unicode characters, and here's where  
I get a little fuzzy
on the objc bridge.

Can someone put together an example for me on how I would complete this 
expression:

(make-instance 'ns:ns-attributed-string
					 :with-string (make-instance 'ns:ns-string :with-characters ??????)
					 :attributes some-attributes))

The question marks refer to an ojb-c unichar *

Alternate approaches would be well received as well.

Thanks.

:alex





More information about the Openmcl-devel mailing list