https://bugs.documentfoundation.org/show_bug.cgi?id=151693

--- Comment #2 from Thomas Tempelmann <[email protected]> ---
As I wrote, being an expert on Mac clipboards, I know very well how to handle
this.

The Warning is for Apps not using Apple's frameworks. This is mainly directed
at MS Word, which has the same issue. That's not an excuse for LO to not fix
this. (BTW, I reported the same issue to the Mac Office team but they seem to
ignore it.) LO could do better than Word here.

Here's how to make a Mac app with Xcode that shows that it works, i.e. that the
rtfd does indeed include the image data:

```
        // fetch 'rtfd' flavor from Pasteboard
        NSPasteboard *pb = NSPasteboard.generalPasteboard;
        NSData *data = [pb dataForType:NSPasteboardTypeRTFD];
        if (!data) {
                NSBeep();
        } else {
                // put the rtfd data into a NSTextView
                NSAttributedString *richText = [NSAttributedString.alloc
initWithRTFD:data documentAttributes:nil];
                [self.textView setRichText:YES];
                [self.textView.textStorage appendAttributedString:richText];
        }
```

The only question is whether LO has a way to parse or otherwise process an
NSAttributedString or the data in an NSTextView in order to convert it into its
own text layout format.

BTW, I'm in the middle of setting up the build system so that I can build LO
myself on a Mac and then look for myself, maybe with some help from the IRC dev
channel.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to