RTF & # 8596; RTFD anyone? How to display RTF with embedded images (Windows) in NSTextView on Mac and vice versa?

I have RTF data shared between Windows and Mac. I use the RichEdit control to edit this data for Windows, so if the user inserts some images, I get RTF with embedded images.

Now I need to display (and edit) this data on a Mac, but NSTextView only supports RTFD (rtf with attachments) and just skips the embedded images.

How can I convert RTF with images (Windows) to RTFD (Mac) and vice versa? Has anyone done this before?

+4
source share

All Articles