Jaaa! This helped, thanks a lot!
Oliver

On 21.11.2013, at 22:49, Christian Schmitz <[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
> 

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to