On 21 Nov 2013, at 22:06, Osswald Oliver <[email protected]> wrote:
>
> I’m stuck. How can I get a richtext to be displayed as formatted in a
> textarea (in Cocoa)?
dim source as string = EditField1.text
dim n as new NSAppleScriptMBS(source)
// compile
if n.compile then
// format text
dim richtext as NSAttributedStringMBS = n.richTextSource
dim tv as NSTextViewMBS = EditField1.NSTextViewMBS
tv.textStorage.setAttributedString richtext
else
// compile error
beep
end if
like this will do it.
Sincerely
Christian
--
Read our blog about news on our plugins:
http://www.mbsplugins.de/
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info