Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to save RTFD?

Answer: With NSTextViewMBS you can use this code to save to RTFD:
Example
// save text as RTFD including image attachments
Var f as FolderItem = GetSaveFolderItem(FileTypes1.ApplicationRtfd, "test.rtfd")

if f = nil then Return

Var a as NSAttributedStringMBS = textView.textStorage
Var w as NSFileWrapperMBS = a.RTFDFileWrapperFromRange(0, a.length, DocumentAttributes)

Var e as NSErrorMBS
if w.writeToFile(f, e) then

else
MsgBox e.LocalizedDescription
end if

For TextArea you can query the underlaying NSTextViewMBS object via TextArea.NSTextViewMBS method.


The biggest plugin in space...